Ok, so you like to move your 3 gig backup from your old server to your new server, but the the good old wget command is not doing the trick?

There is an easy way around with the scp command

Log into your old server where you want to move that big tar file from and

scp yourlarge3gigfile.tgz root@newserverIP.comThis e-mail address is being protected from spam bots, you need JavaScript enabled to view it :/home/
(enter the root pass for the new server and let it copy the file over)

If you run SSH on a different port (that is, not the default port 22) and you need to scp then it can be done by:

scp -P <port> yourlarge3gigfile.tgz root@newserverIP.comThis e-mail address is being protected from spam bots, you need JavaScript enabled to view it :/home/

For example, if your ssh/scp is on port 2000 then:

scp -P 2000 yourlarge3gigfile.tgz root@newserverIP.comThis e-mail address is being protected from spam bots, you need JavaScript enabled to view it :/home/

the above command will connect to scp/ssh port 2000 and copy the file to the remote user’s home directory in the remote server.

If you use SSH key based authentication then when you scp, scp will not ask for user’s password. It will copy your file to the remote server using your ssh private key. Example,

scp -i your_private_key yourlarge3gigfile.tgz root@newserverIP.comThis e-mail address is being protected from spam bots, you need JavaScript enabled to view it :/home/

the above command will use your ssh private key and copy the file (file.txt) in the remote_user’s home directory.

delicious | digg | reddit | facebook | technorati | stumbleupon | chatintamil

Related posts:

  1. E-mail Alert on Root SSH Login Want to be notified instantly when someone logs into your...
  2. The old JavaScript cPanel Server exploit The Javascript exploit has been an old saga on a...
  3. Common SSH Commands and Linux Shell Commands We’ve put together some of the more frequently used SSH...
  4. Linux Cron Jobs Explained Cron allows users to automate repetitive system administration tasks such...
  5. Moving mySQL DBs between servers Moving mySQL DBs from one server to another: mysqldump -uUSER...