Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

centos copy files ssh

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: #centos #copy #files #ssh
ADD COMMENT
Topic
Name
5+8 =