SSH scp command

copy file.txt from server to local machine:

scp user@remote.host:file.txt /some/local/directory

copy file.txt from local machine to server:

scp file.txt user@remote.host:/some/remote/directory

 

Leave a Reply

Your email address will not be published. Required fields are marked *