[kanchilug] Re: [ILUGC] 1D1C - scp

  • From: Baskar Selvaraj <baskar@xxxxxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx
  • Date: Mon, 30 Jan 2023 06:21:55 +0530

SCP (Secure Copy Protocol) -  is a network protocol used to securely copy
files/folders between Linux systems on a network
syntax
$ scp [option] [user_name@source_host:path/to/source/file]
[user_name@target_host:target/path]

To copy a file from local to remote server
$ scp example.txt root@remote_server:/home/user1/remote_dir

If the remote SSH server uses only key based authentication (as in AWS
Linux instances), the option '-i' can be useful.

scp -i secretkeyfile.pem example.txt user@remote_server:/remote_dir

S. Baskar
Kanchilug Blog : http://kanchilug.wordpress.com

To subscribe/unsubscribe kanchilug mailing list : 
http://kanchilug.wordpress.com/join-mailing-list/

Other related posts:

  • » [kanchilug] Re: [ILUGC] 1D1C - scp - Baskar Selvaraj