Question

I am suddenly unable to connect with sftp.

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.

Subscribe
Share

Submit an 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.