Linux
Transfer Files with SCP

Transfer files with SCP

Push To Remove Host

The following is an example of how to transfer example.txt to the root directory of the remote host 192.168.53.72:

scp -P 22 -r /root/example.txt [email protected]:/root

Pull From Remove Host

The following is an example of how to transfer example.txt from the root directory of the remote host 172.16.16.16:

scp -P 22 [email protected]:/root/example.txt /root