kirei / flashboot

OpenBSD Flashboot
http://www.mindrot.org/projects/flashboot/
Other
73 stars 26 forks source link

sshd PTY allocation request failure #21

Closed jrmakosky closed 11 years ago

jrmakosky commented 11 years ago

I have enabled sshd using sshd_flags="" in /flash/conf/etc/rc.conf.local. The daemon starts, and allows connections, but after root's password is accepted, I see the following error on the client side:

debug1: Entering interactive session.
PTY allocation request failed on channel 0
tset: standard error: Inappropriate ioctl for device

sshd logs the following error to the system console:

Jun 12 13:16:46 benny sshd[15419]: error: openpty: No such file or directory
Jun 12 13:16:46 benny sshd[15419]: error: session_pty_req: session 0 alloc failed
jrmakosky commented 11 years ago

/dev/ptm is missing.

diff --git a/list b/list
index e57f2c0..79a823f 100644
--- a/list
+++ b/list
@@ -1,7 +1,7 @@
 # copy the MAKEDEV script and make some devices
 SCRIPT ${DESTDIR}/dev/MAKEDEV                  dev/MAKEDEV
 SPECIAL chmod 700 dev/MAKEDEV
-SPECIAL cd dev; ./MAKEDEV ramdisk pty systrace tty00 tty01 pci wdt0 
+SPECIAL cd dev; ./MAKEDEV ramdisk ptm pty systrace tty00 tty01 pci wdt0 
 SPECIAL cd dev; ./MAKEDEV ttyU0 ttyU1
 SPECIAL cd dev; ./MAKEDEV tun0 tun1 tun2 tun3 tun4 tun5 tun6 tun7
 SPECIAL cd dev; ./MAKEDEV bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 

I am a git neophyte, so I will wait until I'm more proficient to try pull-requests, etc.

jschlyter commented 11 years ago

Thanks, patch committed.