Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 513 Bytes

File metadata and controls

32 lines (20 loc) · 513 Bytes

Secure Copying Files

Use the scp command that uses ssh underneath for copying to/from servers.

File

From local machine to server

scp myfile.txt server.host:./path/on/server/myfile.txt

From server to local machine:

scp server.host:./path/on/server/myfile.txt .

Directory

From local machine to server

scp -r mydir server.host:./path/on/server/mydir

From server to local machine:

scp -r server.host:./path/on/server/mydir .