Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2007 14:35:43 +0200
From:      Ed Schouten <ed@fxq.nl>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   New world - about 2 days old - SSH broken?
Message-ID:  <20070705123543.GI37187@hoeg.nl>

next in thread | raw e-mail | index | archive | help

--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 <ed@fxq.nl>
 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070705123543.GI37187>