Echoing stuff in your .bash_profile can mess up sftp and scp

In my .bash_profile I typically print out my PATH so I can see it when I login. This can cause problems when trying to use an SSH-based file transfer protocol to get files out of this machine.

Using sftp you might see something like "Received message too long 1819238756"
Using scp you will likely see nothing at all - it just won't work.

Comment out all echo statements in your profile and the problem should be resolved.

For more info:


  1. Off the subject but related: I've always thought that getting your gut or face bashed in can make a loud grunt that in good conditions will echo and even be heard down a path.


Post a Comment

Popular Posts