If you have ever used scp or sftp you may have encountered the dreaded ( ”Received message too long” or “Bad packet length” ”) errors.
This is typically due to something being echo’d or sent back to your login attempt.
Usually, it’s something you have in your .profile or .bashrc login files.
Just add the following to the very top of your login shell settings file.
if [ ${TERM} == "dumb" ]; then
return
fi
This will exit out of running the login shell commands if you login using a “dumb” terminal.
