Created
June 4, 2018 15:00
-
-
Save LivesInSpb/a68337e06a07d417d596fe73da2529a1 to your computer and use it in GitHub Desktop.
scp copying (from to) ssh servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To server | |
File | |
scp /home/file1.zip root@192.168.0.2:/home2/ | |
Folder | |
scp -r /home/ root@192.168.0.2:/home2/ | |
From server | |
File | |
scp root@192.168.0.2:/home2/file1.zip /home/ | |
Folder | |
scp -r root@192.168.0.2:/home2/ /home/ | |
From Server to server From third server | |
scp root@192.168.0.1:/home/file1.zip root@192.168.0.2:/home2/ | |
after than you will see 2 inputs password from 2 servers (192.168.0.1 & 192.168.0.2) | |
Thats all. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment