Operating System - HP-UX
1823062 Members
3143 Online
109645 Solutions
New Discussion юеВ

OpenSSH with terminal emulator

 
Martijn Bruns
Occasional Advisor

OpenSSH with terminal emulator

I have a problem with terminal emulation from a PC (with various terminal emulators) to HP-UX 11(i) in combination with OpenSSH.

When i connect to a central server running HP-UX 11 from a PC with SSH, everything still works OK. The problems start when i log through to another machine from that central server (telnet or SSH).

Terminal emulation is really awful in this case. Vi starts halfway the screen (9 lines from the bottom, top half is empty), and swinstall (for instance) is unusable without using ^L every other keystroke.

Funny thing is: this doesn't happen when i log into a machine with HP-UX 10.20 first, instead of the central server with HP-UX 11.00.

Has anybody seen this before? Is there a way to get rid of this?
6 REPLIES 6
Jeff Machols
Esteemed Contributor

Re: OpenSSH with terminal emulator

Try running the resize command, that should exports the LINES and COL environment variable for you.
Martijn Bruns
Occasional Advisor

Re: OpenSSH with terminal emulator

Tried that already on both the central server and the remote server. Doesn't work at all.

What's the difference between HP-UX 10.20 and HP-UX 11.xx in this?
Jeff Machols
Esteemed Contributor

Re: OpenSSH with terminal emulator

I am not sure that is the differece between OS levels, it may be the default setup for the box, whats the default terminal type, size, etc.
Jeff Machols
Esteemed Contributor

Re: OpenSSH with terminal emulator

have you verfied you TERM env when you log in both ways? May your term type is getting carried over incorrectly from the central server
Martijn Bruns
Occasional Advisor

Re: OpenSSH with terminal emulator

Yep. That's the first thing i checked.

I noticed that it only happens when i log into the central server using SSH from the PC. If i log in using telnet, everything works ok. I have the feeling something's getting mangled, but i can't put my finger on it.

I already tried four different terminal emulators; all with exactly the same results. They work with HP-UX 10.20, AIX, Solaris, Tru64, but not with HP-UX 11 or HP-UX 11i.
Jeff Machols
Esteemed Contributor

Re: OpenSSH with terminal emulator

Is it just your terminal thats messed up, or is data also getting mangled back and forth. I am wondering if the compression or encryption methods are different, that might be something to check