I have a curious problem connecting with OpenSSH (5.1p1 on FreeBSD, 6.0-beta on OpenBSD) to some managed switches running "IPSSH-6.6.0". When I connect to the switch with the SSH2 protocol, I can't use the switch's CLI, because I can't terminate a command line. I press <Enter> and nothing happens. Same for ^M (CR) and ^J (NL). When I connect to the switch with SSH1 (or by Telnet or the serial console port), this doesn't happen. <Enter> aka ^M successfully terminates a line. Interestingly, ^J is ignored. I *suspect* that for a SSH2 connection, CR is somewhere mapped to NL, along the lines of the ICRNL termios setting, and NL is then ignored by the switch. I don't know if the problem lies with OpenSSH or the switch--you wouldn't notice this when connecting to a Unix host. -- Christian "naddy" Weisgerber naddy at mips.inka.de
Christian Weisgerber wrote:> I have a curious problem connecting with OpenSSH (5.1p1 on FreeBSD, > 6.0-beta on OpenBSD) to some managed switches running "IPSSH-6.6.0".Are you working on the console of FreeBSD and OpenBSD machines?> I *suspect* that for a SSH2 connection, CR is somewhere mapped to > NL, along the lines of the ICRNL termios setting, and NL is then > ignored by the switch. I don't know if the problem lies with OpenSSH > or the switch--you wouldn't notice this when connecting to a Unix > host.Neither client nor server should be doing any translation. Maybe it's a terminal problem. Suggest trying with various different client terminals, on more operating systems. //Peter
On Wed, 4 Jan 2012, Christian Weisgerber wrote:> I have a curious problem connecting with OpenSSH (5.1p1 on FreeBSD, > 6.0-beta on OpenBSD) to some managed switches running "IPSSH-6.6.0". > > When I connect to the switch with the SSH2 protocol, I can't use > the switch's CLI, because I can't terminate a command line. I press > <Enter> and nothing happens. Same for ^M (CR) and ^J (NL). > > When I connect to the switch with SSH1 (or by Telnet or the serial > console port), this doesn't happen. <Enter> aka ^M successfully > terminates a line. Interestingly, ^J is ignored. > > I *suspect* that for a SSH2 connection, CR is somewhere mapped to > NL, along the lines of the ICRNL termios setting, and NL is then > ignored by the switch. I don't know if the problem lies with OpenSSH > or the switch--you wouldn't notice this when connecting to a Unix > host.Could you send a "ssh -vvv" output? -d