Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Copy file to remote server using scp

Answer:

To copy file from local machine to remote server, it is easy with scp

e.g.

# scp test.txt john@remoteserver:/home/john/

The above command copy the file test.txt to the remote folder /home/john, of the machine remoteserver.

  1. Specify a port with the scp command
  2. Edit a remote file with vim over SSH
  3. How to mirror a directory to a remote server over SSH?
  4. How to transfer your identity.pub to the remote machine’s authorized_keys?
  5. Running a command on the remote server

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>