Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I Have two remote servers like A and B.

A is generating the dump of some tables from a database lets say (abc.sql).I want to transfer abc.sql to B.One option is scp but i didn't want to use because password opened to network.

can I get it directly from the B using wget.

on A the abc.sql have location /mnt/dump_of_tables/abc.sql.

How I will get it on B using wget please help.

share|improve this question
What does "password opened to network" mean? scp is based off ssh, so it's secure. – Jin Sep 23 '11 at 6:16
Exact duplicate of… – janneb Sep 23 '11 at 6:34

wget will require you to set up a web server to get the file. I am pretty sure you don't want to do that.

If you don't want to use a password, you can still use scp by using public keys. Use ssh_keygen to create a public/private keypair. The id_rsa stays on the client machine in ~/.ssh and the contents should be added to ~/.ssh/authorized_keys on the remote machine. If this file doesn't exist then copy over to the machine in the .ssh folder and rename to authorized_keys. Change the permissions of the file to 600.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .