Sunday, October 13, 2013

How to copy file from and to remote PC in linux, centos

Case 1: How to downloading or copying file from remote PC?

Ans: Do it by the following  command --


scp -r user@remote_pc_ip:/path/to/downloadable/file  /your/pc/path

After that the command line will ask for password. Give it and download the file.


Case 2: How to upload or copy file to remote PC?

Ans: Do it by the following  command --


scp -r  /your/pc/path/for/file  user@remote_pc_ip:/path/to/upload/a/file

After that the command line will ask for password. Give it and upload the file.

No comments:

Post a Comment

How to Generate and use the ssh key on Gerrit, github.io, gitlab, and bitbucket.

 Details can be found here -