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 want to transfer files between two Ubuntu systems using SFTP. I have got it set-up and I can connect to the other laptop, ping it and see its file list using sftp> dir. I can see the files on the other system.

But when I call get filename.deb it comes up saying

Fetching /home/user/filename.deb to filename.deb 0% 0 0.0KB/s --:-- ETA 

and then drops back to the sftp> command promote without transferring anything. Have I missed something?

share|improve this question
1  
When you increase logging using -v option on the initial sftp command, what is reported? (hint: cut&paste) –  RedGrittyBrick Sep 13 '12 at 13:54

2 Answers 2

Unless there is a specific reason why you need sftp, ssh is much easier. It is also secure and encrypted. To install the ssh service run this command on both computers:

$sudo apt-get install ssh

You can then use secure copy to transfer the files:

user@local_machine $ scp user@remote_machine:home/user/filename.deb .
share|improve this answer

I found this trick on the Ubuntu forums: have you tried changing the mtu on your interface?

sudo ifconfig <interface> mtu 1490

Where interface is probably eth0 or wlan0.

share|improve this answer
    
If that does will do the trick, there's some basic network error and more applications will suffer from it. One should not have to change the MTU on his local inteface in order to make such stuff work. So basically, you're then just killing symptoms rather fixing actual problems. –  gertvdijk Sep 13 '12 at 14:02

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.