From owner-freebsd-current@FreeBSD.ORG Thu Jul 5 12:35:45 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C069216A41F for ; Thu, 5 Jul 2007 12:35:45 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB2E13C45E for ; Thu, 5 Jul 2007 12:35:44 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id C5E5B1CC28; Thu, 5 Jul 2007 14:35:43 +0200 (CEST) Date: Thu, 5 Jul 2007 14:35:43 +0200 From: Ed Schouten To: FreeBSD Current Message-ID: <20070705123543.GI37187@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rCb8EA+9TsBVtA92" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Subject: New world - about 2 days old - SSH broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2007 12:35:45 -0000 --rCb8EA+9TsBVtA92 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, About two days ago I started a buildworld on my SPARC64 (only a Sun U10). This morning the compilation was finished, so I installed a new world and kernel. The result: | $ ssh -v ultra | OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.8e 23 Feb 2007 | debug1: Reading configuration data /home/ed/.ssh/config | debug1: Reading configuration data /etc/ssh/ssh_config | debug1: Connecting to ultra.fxq.nl [2001:7b8:310::1] port 22. | debug1: Connection established. | debug1: identity file /home/ed/.ssh/identity type -1 | debug1: identity file /home/ed/.ssh/id_rsa type 1 | debug1: identity file /home/ed/.ssh/id_dsa type -1 | debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p= 1 FreeBSD-20061110 | debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH* | debug1: Enabling compatibility mode for protocol 2.0 | debug1: Local version string SSH-2.0-OpenSSH_4.5p1 FreeBSD-20061110 | debug1: SSH2_MSG_KEXINIT sent | debug1: SSH2_MSG_KEXINIT received | debug1: kex: server->client aes128-cbc hmac-md5 none | debug1: kex: client->server aes128-cbc hmac-md5 none | debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent | debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP | debug1: SSH2_MSG_KEX_DH_GEX_INIT sent | debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY | debug1: Host 'ultra.fxq.nl' is known and matches the DSA host key. | debug1: Found key in /home/ed/.ssh/known_hosts:12 | debug1: ssh_dss_verify: signature correct | debug1: SSH2_MSG_NEWKEYS sent | debug1: expecting SSH2_MSG_NEWKEYS | debug1: SSH2_MSG_NEWKEYS received | debug1: SSH2_MSG_SERVICE_REQUEST sent | debug1: SSH2_MSG_SERVICE_ACCEPT received | debug1: Authentications that can continue: publickey,keyboard-interactive | debug1: Next authentication method: publickey | debug1: Offering public key: /home/ed/.ssh/id_rsa | debug1: Server accepts key: pkalg ssh-rsa blen 149 | debug1: Authentication succeeded (publickey). | debug1: channel 0: new [client-session] | debug1: Entering interactive session. | Received disconnect from 2001:7b8:310::1: 2: dup #1 failed: Bad file desc= riptor Thank goodness I discovered that running `ssh ultra sh' does work, so I enabled a telnetd with just some very simple shell commands (no TTY means no vi). When I connect to the machine using SSH, the following messages pop up in the log messages: | Jul 5 14:23:46 ultra sshd[1021]: error: ioctl(TIOCSCTTY): Bad file descr= iptor | Jul 5 14:23:46 ultra sshd[1021]: error: open /dev/tty failed - could not= set controlling tty: Device not configured | Jul 5 14:23:46 ultra sshd[1021]: error: dup2 stdin: Bad file descriptor | Jul 5 14:23:46 ultra sshd[1021]: error: dup2 stdout: Bad file descriptor | Jul 5 14:23:46 ultra sshd[1021]: error: dup2 stderr: Bad file descriptor Is there anyone else who is seeing this behaviour as well? --=20 Ed Schouten WWW: http://g-rave.nl/ --rCb8EA+9TsBVtA92 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGjOWf52SDGA2eCwURAmXiAJ95yoD1MDpkZ4joBQAcbF8/bOojDQCfTAR2 uwBpI/AXoieZtokA813wB2I= =9IRG -----END PGP SIGNATURE----- --rCb8EA+9TsBVtA92--