How to use scp on ubuntu 14.04?

I was trying to upload some files using sftp from my ubuntu client to my ubuntu server but it was very slow and always stalled. Then I tried scp and limit the bandwidth to 1 MB/s (= 8192 Kbits/s) to see if it is faster:
scp -l 8192 /media/disk/summer_pics/ mike@192.168.1.1:”/var/www/Summer 2008/”
It is still stalled. Even after I set lan card to 1492 by:
ifconfig eth0 mtu 1492
Then I trid rsync:
rsync -avz –progress –partial /path/to/copy user@host:~/upload
It didn’t work either.
Finally, I just rebooted my ubuntu server with “sudo reboot” and everything works now.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply