Hello Often remote ssh connection fails due to unreliable wifi etc, and I see corrupted terminal output. Could ssh exits contain \n\n to get past any trailing output from the other machine? ubuntu@ip-xx-xx-xx-xx:~/$ packet_write_wait: Connection to xx.xx.xx.xx port 22: Broken pipe jonny@ubuntu1404:~/ [0] 0:bash* "ip-xx-xx-xx-xx" 06:41 07-Mar-17 jonny@ubuntu1404:~/ jonny@ubuntu1404:~/ Could it be exchanged to output some more lines, eg packet_write_wait: Connection to xx.xx.xx.xx port 22: Broken pipe Connection closed Exit jonny@ubuntu1404:~/ Let me know if this would be acceptable, and I can prepare a patch I am using ssh -V OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016