scp primer
scp (secure copy) is a remote file copy program that comes with ssh. With sshd and ssh client installed on two computers that are connected, you can securely copy files and directories from one computer to another. This post gives you the basics of using scp for file transfer.
To send a file:
$ scp ./file username@domain.com:
To send a directory:
$ scp -r ./dir username@domain.com:
To copy a file:
$ scp username@domain.com:~/dir/file .
To copy a directory:
$ scp -r username@domain.com:~/dir .
For more information, see man(1) scp.
Comments
Leave a Reply
You must be logged in to post a comment.