Skip to content

Categories:

scp – secure copy

Mõned head näited:

scp myfile.txt user@myserver.com:/tmp/mydir

copy remote file myfile.txt from /tmp/mydir to current directory

 

scp user1@myserver1.com:/tmp/myfile.txt user2@myserver2.com:/tmp/dir/myfile.txt

Copy myfile.txt from myserver1.com to myserver2.com

 

scp -r mydir user@myserver.com:/tmp/remotedir

Copy the local directory mydir to /tmp/remotedir on myserver.com

 

scp id_rsa.pub user@192.168.1.15:~/.ssh/authorized_keys

Copy your public key to remote computer using scp to enable remote login

 

Lisainfo:  http://examplenow.com/scp/

Posted in Linux.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.


Refresh