Re: scripted ssh login

On Sat, 28 Jul 2007 17:54:15 +0200, Florian Schoenbeck wrote:

Hi all,

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?

Can't you use scp?