Link Search Menu Expand Document

scp - secure copy (remote file copy program)

scp -P <port_number> <source> <destination>

# remote => local
scp root@192.168.123.1:/home/remoteUser/file.txt /home/localUser/file.txt

# local => remote
scp -P 123456 /home/localUser/test.sh root@192.168.123.1:/home/remoteUser/test.sh

# Enter password.

Resources


Created: 17.10.2021