Operating System - HP-UX
1837785 Members
3351 Online
110119 Solutions
New Discussion

Re: /dev/ptmx device busy

 
nancy rippey
Trusted Contributor

/dev/ptmx device busy

I'm perplexed. I am receiving the following message in syslog.log
sshd[10530]: error: /dev/ptmx: Device busy
sshd[10530]: error: session_pty_req: session 0 alloc fa
iled

My nstrpty is set to 300

//usr/sbin/kmtune -q nstrpty
nstrpty 300 - 300

When I run an fuser I only have 6 connections
fuser /dev/ptmx 2>&1 | wc -w
7

I also recreated the devices (even though I didn't need to.

Any ideas would be greated appreciated.
nrip
2 REPLIES 2
Kent Ostby
Honored Contributor

Re: /dev/ptmx device busy

Increase nstrpty, npty, and nstrtel in the kernel.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
nancy rippey
Trusted Contributor

Re: /dev/ptmx device busy

I was able to get it working by killing all the ssh processes (fuser -k /dev/ptmx) Possibly some type of race condition.
nrip