Search Suggest

how to copy file and folder from linux remote system to local system

Stpes -1. Copy file from remote linux system using username and password

Syntax:
scp username@ip_address_of_remote:/location/filename  local_system_location

Ex:
scp shahzad@192.169.0.10:/home/shahzad/file.txt  /backup

Copy folder/directory from remote linux system using username and password
scp -r shahzad@192.169.0.10:/home/shahzad/data_dir  /backup

Stpes -2. Copy file from remote linux system using pem file

Syntax:
scp -i file_name.pem username@ip_address_of_remote:/location/filename  local_system_location

Ex:
scp server.pem shahzad@192.169.0.10:/home/shahzad/file.txt  /backup

Copy folder/directory from remote linux system using pem file
scp -i server.pem  -r shahzad@192.169.0.10:/home/shahzad/data_dir  /backup

إرسال تعليق