Bug 272 - Ctrl-C exits
Summary: Ctrl-C exits
Status: CLOSED DUPLICATE of bug 245
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: -current
Hardware: UltraSPARC Solaris
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-12 05:25 AEST by John Carroll
Modified: 2004-04-14 12:24 AEST (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 John Carroll 2002-06-12 05:25:07 AEST
When I type Ctrl-C in any ssh shell, it exits the shell.  I have tried this 
from PuTTy, as well as an older version of the OpenSSH client on another Sun 
Solaris system.  It only seems to do this on the newest version of OpenSSH.

I tried to ssh from the system to itself, and get a host key error.

I checked the error logs, and I get an error every time it starts up an ssh 
seesion, shown below, that it couldn't open /dev/tty.

I'm guessing this may have to do with the locations of various files, possibly 
those of OpenSSL (since I changed the locations of some things from the 
original), but I can't find anything in the documentation about this.

It compiles, creates the keys, and installs fine.

thanks,
john


# openssl version
OpenSSL 0.9.6d 9 May 2002

# ssh -v
OpenSSH_3.2.2p1, SSH protocols 1.5/2.0, OpenSSL 0x0090604f

# ssh sunshine
Host key verification failed.

# tail /var/adm/messages (and /var/adm/auth_log)
Jun 11 12:48:10 sunshine sshd[18645]: [ID 800047 auth.error] error: 
open /dev/tty failed - could not set controlling tty: No such device or address

# ps -aef | grep ssh
root   400     1  0 10:19:07 ?        0:02 /usr/local/sbin/sshd
root 18682   400  1 13:02:31 pts/10   0:01 /usr/local/sbin/sshd

# ls -al /dev/tty
lrwxrwxrwx   1 root     other         26 Jun 10 14:46 /dev/tty
 -> ../devices/pseudo/sy@0:tty

# ls -la /devices/pseudo/sy@0:tty
crw-rw-rw-   1 root     tty       22,  0 Jun 10 14:46 /devices/pseudo/sy@0:tty

# ls /usr/local/src/*ssl*
/usr/local/src/openssl-0.9.6d.tar.gz

# ./config --prefix=/usr/local --openssldir=/usr/local

# ls /usr/local/src/*ssh*
/usr/local/src/openssh-3.2.2p1.tar.gz

# ./configure --prefix=/usr/local --sysconfdir=/usr/local/etc --with-pid-
dir=/usr/local/etc --with-tcp-wrappers --with-egd-pool=/dev/egd-pool
Comment 1 Darren Tucker 2002-06-12 10:42:56 AEST
This is a know bug in 3.2.2p1. Upgrade to 3.2.3p1.

See http://bugzilla.mindrot.org/show_bug.cgi?id=245 for details.

*** This bug has been marked as a duplicate of 245 ***
Comment 2 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED