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

Share on Google Plus

About Md. Shahzad Alam

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment