Report this

What is the reason for this report?

I am suddenly unable to connect with sftp.

Posted on October 23, 2015

I was happily using sftp to connect to my fedora droplet until yesterday. This morning I am suddenly unable to connect both via terminal and GUI.

I am getting this error.

[Abhinav@abhinav-fed22 ~] $ sftp rot@xxxxxxxxxx
root@xxxxxxxx's password: 
Received message too long 543121247

I have reset the ssh keys, and tried a lot of suggestions here and on google. What is suddenly wrong.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This is issue is caused when you shell initialization (.profile, .bashrc, .cshrc, etc) which produces output for non-interactive sessions such as sftp.

You have to modify .profile, .bashrc, .cshrc files and make sure it doesn’t output any messages.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.