Truth Tables

SCP

The scp syntax for pushing a file is

scp sourcefilename username@hostname:desticationfilename

Push file with same name

Scp testfile serveruser@192.168.1.141:testfile


Push file with differntname

scp testfile serveruser@192.168.1.141:sametestfile


Push folder with differntname with recursive

scp -r testdirserveruser@192.168.1.141:sametestfile


Pull from server

scp username@hostname:sourcefilelocation

scp serveruser@192.168.1.141:pullfile1.


Verbose logging

scp -v  testfile serveruser@192.168.1.141:testfile


Quite mode logging

scp -q  testfile serveruser@192.168.1.141:testfile


Compression mode for faster transfer

-c 


Change scp port

edit this file:

/etc/ssh/sshd_config


scp -P <port> <file> serveruser@192.168.1.141


No comments:

Post a Comment