1846609 Members
1991 Online
110256 Solutions
New Discussion

SSH throws garbage !!

 
titu
Regular Advisor

SSH throws garbage !!

Hi all ,

I have a system when I try to SSH I am getting garbage on the system.

I am working on 11.11 server and when do a SSH it throws me garbage and I am able to telnet.

I am using a reflections terminal session set to vt100 , When I use putty same issue.

3 REPLIES 3
titu
Regular Advisor

Re: SSH throws garbage !!

Hi All ,

This issue with all the users and no recent changes to the system.

Thanks in advance

Titu
Steven Schweda
Honored Contributor

Re: SSH throws garbage !!

As the people in the VMS forum suggested,
some description of the actual commands you
used, and the actual output you got, would be
more helpful than a description so vague as
"throws me garbage".

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1276855

And, as also already suggested (more or
less), adding "-v" to your "ssh" command
might be helpful, too.
Bill Hassell
Honored Contributor

Re: SSH throws garbage !!

So you cannot read anything on the screen after typing ssh, correct? Or did you mean that you do see the login and profile steps but certain commands like sam or other menu programs have wrong characters? This condition means that someone has hardcoded TERM=something in /etc/profile or .profile, .kshrc, .bashrc, etc. Reflection is a very accurate and powerful emulator whiloe putty is a simple VT emulator. You must match the terminal characteristics to the environment. HP-UX has very nifty program called ttytype which will properly set these values.

So find all occurrences of TERM= (and LINES=, COLUMNS= and ERASE=) and comment or remove them. Remove the TERM code in /etc/profile and replace it with:

eval $(ttytype -sa)

This works for all terminal emulators and solves the problem of garbage characters and backspace keys that don't work. NOTE: the rp systems with a GSP or MP console bypass ttytype (don't ask) and override the console type. The key is to avoid using the GSP/MP port for anything except command lines.


Bill Hassell, sysadmin