Bug 2689 - Terminal new line after packet_write_wait: Connection failure
Summary: Terminal new line after packet_write_wait: Connection failure
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 7.2p2
Hardware: Other Linux
: P5 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-07 18:34 AEDT by jg
Modified: 2017-03-07 18:34 AEDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jg 2017-03-07 18:34:52 AEDT
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