Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
2  
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 stackoverflow.com/questions/7524960/… –  janneb Sep 23 '11 at 6:34
add comment

1 Answer

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 id_rsa.pub contents should be added to ~/.ssh/authorized_keys on the remote machine. If this file doesn't exist then copy id_rsa.pub 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.