SCP
Basic Commands
scp file.txt [email protected]:
Send file
scp file.txt [email protected]:/home/moved.txt
Send file
scp [email protected]:/home/file.txt moved.txt
Pull file
scp [email protected]:/home/file.txt /home/user
Pull file
scp [email protected]:file.txt .
Pull file to current dir
scp -3 [email protected]:file.txt [email protected]:
Pull file. (-3) will buffer the file thru your localhost.
SCP Syntax w/ Alternate SSHD
scp -P 1111 [email protected]:file.txt .
Pull file using alternate SSH port
scp -P 1111 file.txt [email protected]:
Send file using alternate SSH port
SCP Syntax Through a Tunnel
ssh [email protected] -L 1111:10.10.10.2:22 -NT
Pull file through dynamic tunnel:
ssh [email protected] -D 9050 -NT
proxychains scp [email protected]:file.txt .
proxychains scp file.txt [email protected]:
Last updated
Was this helpful?