Bug 1359 - keyboard repeats when somebody logins as root through ssh
Summary: keyboard repeats when somebody logins as root through ssh
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 4.7p1
Hardware: All Linux
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-11 06:51 AEST by Pacho Ramos
Modified: 2008-04-04 10:00 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos 2007-09-11 06:51:48 AEST
If somebody connects to my system using ssh and logins as root (and sometimes also as user) keyboard will repeat until user switch to console and comes back to X.

This occurs on all my gentoo systems with openssh-4.5_p1, 4.6_p1 and 4.7_p1

Thanks a lot
Comment 1 Darren Tucker 2007-09-11 10:06:40 AEST
What do you mean by "repeats"?  The same key appears multiple times when you press it once, or the keystrokes are echoed even when they should not be (eg while entering a password)?

Do you have PAM enabled and if so, what modules do you have in the sshd stack?  If you do have it enabled, do you see the same behaviour with "UsePAM no" in sshd_config.

Can you reproduce the problem with a vanilla OpenSSH 4.7p1 from openssh.com without any Gentoo modifications?  (I have no idea what, if anything, Gentoo changes.)
Comment 2 Pacho Ramos 2007-09-11 22:54:50 AEST
(In reply to comment #1)
> What do you mean by "repeats"?  The same key appears multiple times
> when you press it once, or the keystrokes are echoed even when they
> should not be (eg while entering a password)?
> 

When anybody logins as root, keyboard starts to fail in X, sometimes, if I press a key, it is repeated:
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllsssssssssssssssssssssssssssssss
...

until I switch to a console and come back to X. But, for example now, when I was trying with openssh without pam, keyboard simply cannot write anything but it works, because I can switch to a console and come back to X also (Ctrl+Alt+F2 -> Ctrl+Alt+F7).



> Do you have PAM enabled and if so, what modules do you have in the sshd
> stack?  If you do have it enabled, do you see the same behaviour with
> "UsePAM no" in sshd_config.
> 

I get the same problem with and without pam enabled

> Can you reproduce the problem with a vanilla OpenSSH 4.7p1 from
> openssh.com without any Gentoo modifications?  (I have no idea what, if
> anything, Gentoo changes.)
> 

My gentoo build only has the following modified:

1. After unpacking sources it runs:
        sed -i \
                -e '/_PATH_XAUTH/s:/usr/X11R6/bin/xauth:/usr/bin/xauth:' \
                pathnames.h || die

        sed -i "s:-lcrypto:$(pkg-config --libs openssl):" configure{,.ac} || die

2. Configure is run with the following options:

$ ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-ldflags= --disable-strip --sysconfdir=/etc/ssh --libexecdir=/usr/lib64/misc --datadir=/usr/share/openssh --disable-suid-ssh --with-privsep-path=/var/empty --with-privsep-user=sshd --with-md5-passwords --without-ldap --without-libedit --without-kerberos5 --with-tcp-wrappers --without-selinux --without-skey --without-opensc --with-pam --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu

3. After installing:

$ chmod 600 /etc/ssh/sshd_config

If you want, I can upload some config files...

Thanks a lot :-)
Comment 3 Pacho Ramos 2007-09-11 23:02:34 AEST
I attach a small video showing the problem, keyboard stops when I go to console 1 and come back to X:

http://files.myopera.com/pacho/files/out.ogg
Comment 4 Pacho Ramos 2007-09-22 19:58:13 AEST
Sorry, this is caused by this:
http://bugs.gentoo.org/show_bug.cgi?id=192442#c11
Comment 5 Damien Miller 2008-04-04 10:00:43 AEDT
Close resolved bugs after release.