Re: SSH on gnome-terminal 1.0.41 doesn't work



On 01 October, 1999 - Matthijs Melchior sent me these 1,4K bytes:

> Hi,
> 	I am replying to a message in the archive...
> 
> > When using ssh from a gnome terminal: 
> .....
> > kevins-linux.atkinson.inet: compress incoming: raw data 38, compressed 47, factor 1.24 
> > Command terminated on signal 1. 
> > 
> > When using from an X-term: 
> .....
> > Ssh also works when I telnet to localhost from a gnome-terminal but DOES 
> > NOT work when I rlogin to a localhost. 
> .....
> > Kevin Atkinson
> > kevinatk@home.com
> .....
> 
> 	I just had a simmilar experience on Solaris7 with CDE1.3, and
> there it turned out to be a problem with the terminal speed setting
> in the environment where I start ssh.  If the speed is 0 there, you
> get a HUP signal when sshd uses that to set the tty properties for your
> new shell.  The last [sending HUP on `stty 0'] is according to standard
> unix behaviour, the first [tty speed being 0] is not...
> 
> So, maybe gnome-terminal is handling the terminal properties in an
> unexpected way....

XF86 xterm on IRIX acts the same way. We had no clue why ssh:ing to a
solaris box from an IRIX xf86xterm resulted in signal 1.. Now we do.

xf86xterm sets speed to 0 if run locally (which results in sig1).
Changing to >0 makes it work.

rxvt sets it to 38400 with the following...

# ifdef TCSANOW                 /* POSIX */
#  define GET_TERMIOS(fd,tios)  tcgetattr (fd, tios)
#  define SET_TERMIOS(fd,tios)          \
        cfsetospeed (tios, BAUDRATE),   \
        cfsetispeed (tios, BAUDRATE),   \
        tcsetattr (fd, TCSANOW, tios)
# else
#  ifdef TIOCSETA
#   define GET_TERMIOS(fd,tios) ioctl (fd, TIOCGETA, tios)
#   define SET_TERMIOS(fd,tios)         \
        tios->c_cflag |= BAUDRATE,      \
        ioctl (fd, TIOCSETA, tios)
#  else
#   define GET_TERMIOS(fd,tios) ioctl (fd, TCGETS, tios)
#   define SET_TERMIOS(fd,tios)         \
        tios->c_cflag |= BAUDRATE,      \
        ioctl (fd, TCSETS, tios)
#  endif
# endif
# define SET_TTYMODE(fd,tios)           SET_TERMIOS (fd, tios)

Thankyouthankyou for finding this.

/Tomas
-- 
Tomas Ögren, stric@ing.umu.se, http://www.ing.umu.se/~stric/
|- Student at Computing Science, University of Umeå
`- Sysadmin at {cs,ing,acc}.umu.se



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]