How to Upload / Copy File From 1 Server to Another Through SSH

Use SCP

scp <source> <destination>

Download from Remote source:

scp -P [port] [sshuser]@[hostname]:/path/to/file /path/to/destination

Example

scp -P 22 username@b:/path/to/file /path/to/destination

It will then ask for password. Just put in the SSH password.
Make sure ports are open for both servers.

Leave a Reply

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

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=""> <s> <strike> <strong>