pppd pty Input/output error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pppd pty Input/output error

Denis Lapshin-2

Trying to make ppp connection using pty - pseudo terminal driver:

/usr/sbin/pppd ptyp0 noccp novj novjccomp nopcomp coaccomp noauth debug
passive updetach name -client connect 'stunnel /etc/stunnel/client.conf'

tail /var/log/messages
pppd[12698]: pppd 2.3.5 started by user, uid 0
pppd[12698]: Failed to open /dev/ptyp0: Input/output error
pppd: Exit.

pty* in /dev

ls -alh /dev/pty*
crw-rw-rw- 1 root wheel 6,  0 Apr 10 10:01 /dev/ptyp0
crw-rw-rw- 1 root wheel 6,  1 Apr 10 10:01 /dev/ptyp1
crw-rw-rw- 1 root wheel 6,  2 Apr 10 10:01 /dev/ptyp2

Please advice what can be wrong.

Reply | Threaded
Open this post in threaded view
|

Re: pppd pty Input/output error

Denis Lapshin-2
Fixed by using different pty (ptypA instead of ptyp0).

On 4/10/2019 2:13 PM, Denis wrote:

>
> Trying to make ppp connection using pty - pseudo terminal driver:
>
> /usr/sbin/pppd ptyp0 noccp novj novjccomp nopcomp coaccomp noauth debug
> passive updetach name -client connect 'stunnel /etc/stunnel/client.conf'
>
> tail /var/log/messages
> pppd[12698]: pppd 2.3.5 started by user, uid 0
> pppd[12698]: Failed to open /dev/ptyp0: Input/output error
> pppd: Exit.
>
> pty* in /dev
>
> ls -alh /dev/pty*
> crw-rw-rw- 1 root wheel 6,  0 Apr 10 10:01 /dev/ptyp0
> crw-rw-rw- 1 root wheel 6,  1 Apr 10 10:01 /dev/ptyp1
> crw-rw-rw- 1 root wheel 6,  2 Apr 10 10:01 /dev/ptyp2
>
> Please advice what can be wrong.
>