Copy local files to remote server(192.168.1.1)
$ scp -r /home/rajkumar/Desktop/test ubuntu@192.168.1.1:/var/www/html/Projects/
Copy remote server(192.168.1.1) files to local system
$ scp -r username@domain:/var/www/html/Projects/test /home/rajkumar/Desktop
Copy local files to remote server(aws ec2)
$ scp -i "test.pem" /home/rajkumar/Desktop/rajkumar username@domainname:/var/www/html/Projects/
Copy remote server(aws ec2) files to local system
$ scp -i "test.pem" -r username@domainname:/var/www/html/test/rajkumar /home/rajkumar/Desktop
No comments:
Post a Comment