Skip to content

Instantly share code, notes, and snippets.

@LivesInSpb
Created June 4, 2018 15:00
Show Gist options
  • Save LivesInSpb/a68337e06a07d417d596fe73da2529a1 to your computer and use it in GitHub Desktop.
Save LivesInSpb/a68337e06a07d417d596fe73da2529a1 to your computer and use it in GitHub Desktop.
scp copying (from to) ssh servers
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