Bug 26602

Summary: RELENG_4 ssh/sshd modifies the 'erase' character
Product: Base System Reporter: Peter Pentchev <roam>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Peter Pentchev 2001-04-15 19:00:03 UTC
When I log in on a virtual console, stty -a shows ^H as the erase character.
When I ssh to the same or different RELENG_4 machine, stty -a still shows ^H
as the 'erase2' char, but the 'erase' char is ^?.

Fix: 

No idea.. I tried tracing the ssh client, substituting all calls to tcsetattr()
with calls to a new wrapper function, so I can place breakpoints - nothing.
It seems the problem is with the server, somewhere along the login procedure..
How-To-Repeat: 
Script started on Sun Apr 15 20:48:19 2001
[roam@ringworld:p0 ~]$ stty -a | fgrep -w erase
	eol2 = <undef>; erase = ^H; erase2 = ^H; intr = ^C; kill = ^U;
[roam@ringworld:p0 ~]$ ssh -t ringworld 'stty -a | fgrep -w erase'
roam@ringworld's password: 
	eol2 = <undef>; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U;
Connection to ringworld closed.
[roam@ringworld:p0 ~]$ exit
exit

Script done on Sun Apr 15 20:48:36 2001

Subtly annoying ;)
Comment 1 Peter Pentchev freebsd_committer freebsd_triage 2002-06-14 14:40:31 UTC
State Changed
From-To: open->closed

This seems to have been fixed sometime after 4.3-RELEASE; it certainly 
does not happen with 4.6-RC :)