Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

copy a file from local to 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: #copy #file #local #ssh
ADD COMMENT
Topic
Name
5+7 =