Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

scp from server to my computer

# for your eyes only

The basic syntax is:
scp username@source:/location/to/file username@destination:/where/to/put

If you are on the computer from which you want to send file to a remote computer:
scp /file/to/send username@remote:/where/to/put

If you are on the computer wanting to receive file from a remote computer:
scp username@remote:/file/to/send /where/to/put

Send files between two remote hosts:
scp username@remote_1:/file/to/send username@remote_2:/where/to/put
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #scp #server #computer
ADD COMMENT
Topic
Name
3+6 =