Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

send files via ssh

Syntax:
scp <source> <destination>

To copy a file from B to A while logged into B:
scp /path/to/file username@a:/path/to/destination

To copy a file from B to A while logged into A:
scp username@b:/path/to/file /path/to/destination
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #send #files #ssh
ADD COMMENT
Topic
Name
5+3 =