Thursday, April 15, 2010

Secure files transfer through SSH

http://www.unixwiz.net/techtips/putty-openssh.html
http://www.lesbell.com.au/Home.nsf/b8ec57204f60dfcb4a2568c60014ed0f/ed0d3f0199e49f57ca25734000023a77?OpenDocument


Some times you need to login two hosts.

First login:
ssh pete2@stickerguy.net
password:


su
root password:

Next server
ssh stickerguy@web2.greatbasin.net -p 2222
password:

Now you connected two hosting servers and you are in second server. To come out of second server press exit.

The below command will copy the first server files to second server.
scp -r pete2@stickerguy.net:/usr/local/lib/php/Services/ ./Services/

No comments: