1

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?

1
  • 1
    When you increase logging using -v option on the initial sftp command, what is reported? (hint: cut&paste) Sep 13, 2012 at 13:54

2 Answers 2

1

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 .
0

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.

1
  • 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, 2012 at 14:02

You must log in to answer this question.

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