Re: scripted ssh login



On Jul 28, 10:54 am, Florian Schoenbeck wrote:

I need to fetch some data from a Database which can be reached via a ssh-tunneled TCP-port.
Manually, everything works fine. First, the ssh-connection is established and after that, the
data is fetched.

Now I need to run this as a cron job, so I need to establish the ssh-connection by script.
That should work without problems because the login is without password. But how can I shut
down the connection after the data is transfered?

Any ideas?

Use exit, it's just a regular terminal session.
--
René Berber

.