[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [OT, slightly] SSH between servers



> :>$ ssh -l <username> -c 3des -L 2121:<server2>:21 <server1>

> Yes, that is what I assumed Pierre would want to do. Thanks for the info on
> the setup, that might come in handy.

> :>
> :><username>   = user recognized by <server1>
> :>-c 3des      = cipher to use (either 3des or blowfish using OpenSSH)
> :>-L 2121      = local port to use for forwarding (should be nonprivileged
> :>port > 1024)
> :><server2>:21 = host:port you wish to tunnel ftp session *TO*
> :><server1>    = the host you wish initiate SSH session with (usually the same
> :>host you connect to via your workstation)
> :>
> :>$ ftp localhost 2121
> :>
> :>will securely tunnel through to <server2>:21.

Yes, this a good way to do this, this method also comes handy to make secure
connections to the RaQ 2 admin server.   

There is also another program that comes with openSSH, called scp (Secure
copy).

Lets say you wanted to copy the entire /home/sites/home/ directory to
/home/sites/home on the second box.  You could do the following:
$ cd /home/site/home
$ scp -r * admin@xxxxxxxxxxxxxxxx:/home/sites/home

Jeff-