13 March, 2012

copying file using scp linux

scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh.

1) Copying file using scp to remote host
 scp file1.txt <username>@<domain_name>:www/file1.txt
this will ask for password, enter
it password and then file transfer will happen

2) Copying  file using scp from remote host
scp  <username>@<domain_name>:www/file1.txt  /local/file/path

3) Copying  folder using scp from remote host
scp -r <username>@<domain_name>:www/folder_name .

No comments:

Post a Comment