Jump to content

  •  

Photo
- - - - -

How to: Transfer files between servers over SSH in Ubuntu/Debian

Linux Tutorials Debian Debian 7 Debian 6 Ubuntu Ubuntu 12.04 Ubuntu 14.04

  • Please log in to reply
No replies to this topic

#1 Wilson18

Wilson18

    Administrator

  • root
  • 112 posts
  • LocationUniversity of Birmingham

Posted 22 July 2014 - 10:47 PM

In this tutorial, I will be showing you how you can transfer files between servers. Below, you should be able to see this been done.
 
Download to this server
If you are currently connected to a server and would like to download a file to it from another server, you will need to run a command like this. 
scp user@host:/path/to/remote/file /location/to/save/file
You should then be prompted to enter a password. Once you have done this, you should then see the file start to download.

download2thisserver.jpg

Upload to another server
If you would like to upload a file from a server you are currently connected to over to another server, you can do so using the command below. 
scp /path/to/my/file user@host:/location/to/save/file 

upload2server.jpg


List what you read?

Check me out on: YouTube, Twitter, Facebook, Google+






Also tagged with one or more of these keywords: Linux, Tutorials, Debian, Debian 7, Debian 6, Ubuntu, Ubuntu 12.04, Ubuntu 14.04