I broke my SSH to jails after 7.2-8.0 src upgrade
delphij at gmail.com
Fri Mar 12 02:49:50 UTC 2010
Sounds like you have something wrong with devfs.rules in jail section?
On Mar 11, 2010 6:46 PM, "Steve Bertrand" <steve at ibctech.ca> 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 at 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
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
When trying to SSH to a jail from the resident host OS:
PTY allocation request failed on channel 0
Warning: no access to tty (Bad file descriptor).
Thus no job control in
...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: error: openpty: No such file or directory
Mar 11 21:35:40 acct sshd: error: session_pty_req: session 0 alloc
A listing of the dev directory on the jail doesn't show pts (but it does
on the host OS):
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
freebsd-stable at freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
More information about the freebsd-stable