Transferring files between 2 VPS using SSH?

Terrance

Member
Registered
Joined
Jun 30, 2016
Messages
33
Points
0
I have a file on VPS1 and I want to move or transfer it to VPS2, is there a way to do this via SSH?
The speed of my VPS is very fast and I think if I can transfer files via SSH between VPS companies, its more convenient and save my time.
 

Rackend

New member
Registered
Joined
Aug 31, 2016
Messages
8
Points
0
Sure it is possible, simply google for manuals that are available on the web
 

GswHosting

Well-known member
Registered
Joined
Aug 23, 2016
Messages
233
Points
0
GswHosting
If you wanna help write some example (founded on google or on other forum), don't just say Look on SE and you can find tons of information.
That is rude and looks like spam. (there are other ways to get No. of post)
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
Hi Terrance

Yes you can copy files over SSH using SCP (Secure Copy).

Example usage:

Copy file from VPS1 to VPS2: scp file.txt username@VPS2:/remote/directory/
Copy directory recursively from VPS1 to VPS2: scp -r /local/directory/ username@VPS2:/remote/directory/
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
/remote/directory/ is the destination for your copied files

Yes, once you press enter it will prompt you for the password for the username you have given.
 

energizedit

Well-known member
Registered
Joined
Dec 13, 2016
Messages
259
Points
18
Once you ssh'd into the first vps you could also use ftp to transfer. something like so #ftp user@vps2
This will drop you into the home folder for user on vps2

SCP would be the way to go though, you can copy a file to anywhere on the second vps.
 

WPCycle

Well-known member
Hosting Provider
Registered
Joined
Dec 31, 2016
Messages
123
Points
18
1. SFTP through SSH
2. Rsync
3. Wget
4. SCP
 

Terrance

Member
Registered
Joined
Jun 30, 2016
Messages
33
Points
0
Once you ssh'd into the first vps you could also use ftp to transfer. something like so #ftp user@vps2
This will drop you into the home folder for user on vps2

SCP would be the way to go though, you can copy a file to anywhere on the second vps.
1. SFTP through SSH
2. Rsync
3. Wget
4. SCP
I knew using wget and SCP as the guide above.

How about Rsync and SFTP through SSH? Would you minding sharing details on these methods?
 
Older Threads
Replies
6
Views
3,476
Replies
11
Views
6,253
Replies
11
Views
5,539
Replies
2
Views
2,742
Latest Threads
Replies
1
Views
29
Replies
0
Views
197
Replies
1
Views
42
Replies
2
Views
84

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top