From owner-freebsd-current@FreeBSD.ORG Thu Jul 5 12:51:56 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 70C2A16A474 for ; Thu, 5 Jul 2007 12:51:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay01.kiev.sovam.com (relay01.kiev.sovam.com [62.64.120.200]) by mx1.freebsd.org (Postfix) with ESMTP id 0BE5D13C4B9 for ; Thu, 5 Jul 2007 12:51:55 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [89.162.146.170] (helo=skuns.kiev.zoral.com.ua) by relay01.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1I6QoD-0009DY-Si for freebsd-current@freebsd.org; Thu, 05 Jul 2007 15:51:54 +0300 Received: from deviant.kiev.zoral.com.ua (root@[10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l65CpPdF029833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 Jul 2007 15:51:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l65CpPSN009574; Thu, 5 Jul 2007 15:51:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1/Submit) id l65CpO36009531; Thu, 5 Jul 2007 15:51:24 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 5 Jul 2007 15:51:24 +0300 From: Kostik Belousov To: Ed Schouten Message-ID: <20070705125124.GT2200@deviant.kiev.zoral.com.ua> References: <20070705123543.GI37187@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="REOXmE5zpOGz6VLu" Content-Disposition: inline In-Reply-To: <20070705123543.GI37187@hoeg.nl> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.90.2, clamav-milter version 0.90.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on skuns.kiev.zoral.com.ua X-Scanner-Signature: e860fde63604f368aea63056fc3ed89d X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1189 [July 05 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: FreeBSD Current Subject: Re: 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:51:56 -0000 --REOXmE5zpOGz6VLu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 05, 2007 at 02:35:43PM +0200, Ed Schouten wrote: > Hello, >=20 > 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: >=20 > | $ 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.= 5p1 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-interacti= ve > | 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 de= scriptor >=20 > 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). >=20 > When I connect to the machine using SSH, the following messages pop up > in the log messages: >=20 > | Jul 5 14:23:46 ultra sshd[1021]: error: ioctl(TIOCSCTTY): Bad file des= criptor > | Jul 5 14:23:46 ultra sshd[1021]: error: open /dev/tty failed - could n= ot 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 descript= or > | Jul 5 14:23:46 ultra sshd[1021]: error: dup2 stderr: Bad file descript= or >=20 > Is there anyone else who is seeing this behaviour as well? And then, does telnet works ? In particular, do you get tty when telnetting into the box, does command like "echo aaa >/dev/tty" work from telnet sessi= on ? --REOXmE5zpOGz6VLu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGjOlLC3+MBN1Mb4gRAnTpAKCGDIuGIuZYYVR+M/kL8HrX2tVi8QCeIz3s WLVTLdd0RMNx4Pof3e8kC80= =X41E -----END PGP SIGNATURE----- --REOXmE5zpOGz6VLu--