From owner-freebsd-stable@FreeBSD.ORG Fri Mar 12 02:49:50 2010 Return-Path: Delivered-To: FreeBSD-Stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E2E8106566B for ; Fri, 12 Mar 2010 02:49:50 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 626D88FC08 for ; Fri, 12 Mar 2010 02:49:50 +0000 (UTC) Received: by pvg3 with SMTP id 3so315753pvg.13 for ; Thu, 11 Mar 2010 18:49:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=ayFht59q4DydE3ZXmDx8FR4PX9EEt2ZzSj5PGAFPa/Y=; b=Zbq/tw6cpUK37VRms5H8lR8QnntHsvVQqfrs8FKUTKM/82sfyOJspn38l4HqsR3JpP mIIl7RrHnYri2yWWo8PbR3p8u9r7jDT0j8r8MGWiQnvTvRd5HStDLJbuQqFHbhOP2aa/ gCv1bzRsk2B4AUqQKNVC1pByFW15mXq5shh5A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bZHGWijIy/gkPIXnEY/VH9vdMljrRtJCOmYGiYbsHbAJDEyd5+E0EOmB92EyFW9ZWW Edhr/qc6EnZYU8q2adBvsHvOavTkGa8ijjwBFI4Kedj0DG2hu1OmdkmZnsp63m68zMel SMKlHJimcCuYNgBaJWTuWlCb/mMTv3m+cf3CA= MIME-Version: 1.0 Received: by 10.115.114.32 with SMTP id r32mr1940724wam.189.1268362189742; Thu, 11 Mar 2010 18:49:49 -0800 (PST) In-Reply-To: <4B99AAD3.9060606@ibctech.ca> References: <4B99AAD3.9060606@ibctech.ca> Date: Thu, 11 Mar 2010 18:49:49 -0800 Message-ID: From: Xin LI To: Steve Bertrand Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Stable Subject: Re: I broke my SSH to jails after 7.2-8.0 src upgrade X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2010 02:49:50 -0000 Sounds like you have something wrong with devfs.rules in jail section? On Mar 11, 2010 6:46 PM, "Steve Bertrand" wrote: Hi all, please forgive the verbosity, but I wanted to include as much detail as possible (without including config files) up front. Summary: SSH works to the jail box host OS, but not to the jails themselves. On a box that is dedicated to jails, I source upgraded from 7.2 to: FreeBSD jail.eagle.ca 8.0-STABLE FreeBSD 8.0-STABLE #0: Thu Mar 11 13:22:59 EST 2010 root@jail.eagle.ca:/usr/obj/usr/src/sys/JAIL i386 I then proceeded to update each jail by `make installworld DESTDIR=$JAILDIR', followed by (for most, but not quite all jails), a `mergemaster -Uia'. During the upgrade of the host OS, I know I rebooted here: - after the `installkernel' phase of the host OS - after the `installworld' phase of the host OS ...in between the above stages, I performed a `mergemaster -Uia' Now, I can SSH into the host, but not the jails it contains. I have been Googling for hours trying to figure this out. I've honestly exhausted all of the possibilities I could find regarding the issue, even some that dated back to the good ol' 4.x days. It seemingly has something to do with tty/pts, but I just can't figure it out. When trying to SSH to a jail from the resident host OS: %ssh acct.eagle.ca Password: PTY allocation request failed on channel 0 Warning: no access to tty (Bad file descriptor). Thus no job control in this shell. ...and when I attempt SSH to a jail from a remote box, the connection drops immediately after I enter the password. In both cases, the following is logged into /var/log/messages within the jail host: Mar 11 21:35:40 acct sshd[8175]: error: openpty: No such file or directory Mar 11 21:35:40 acct sshd[8178]: error: session_pty_req: session 0 alloc failed A listing of the dev directory on the jail doesn't show pts (but it does on the host OS): %ll /usr/jails/acct/dev total 1 dr-xr-xr-x 2 root wheel 512 Mar 11 17:12 fd lrwxr-xr-x 1 root wheel 14 Mar 11 17:12 log -> ../var/run/log crw-rw-rw- 1 root wheel 0, 7 Mar 11 21:11 null crw-rw-rw- 1 root wheel 0, 12 Mar 11 12:10 random lrwxr-xr-x 1 root wheel 4 Mar 11 17:12 stderr -> fd/2 lrwxr-xr-x 1 root wheel 4 Mar 11 17:12 stdin -> fd/0 lrwxr-xr-x 1 root wheel 4 Mar 11 17:12 stdout -> fd/1 lrwxr-xr-x 1 root wheel 6 Mar 11 17:12 urandom -> random crw-rw-rw- 1 root wheel 0, 8 Mar 11 17:10 zero ...and I've tried to make Google-advised changes to the /etc/defaults/devfs.rules file to no avail. ;) All other services within the host OS and the jails are operating perfectly. I'm just missing my tty's. Can someone hit me with the cluebat, because I really feel that I've missed something. Thanks, Steve _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"