yamt / ptyrdr

Open a PTY and dup it to stdin and stdout.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ptyrdr

Open a PTY and dup it to stdin and stdout. This can be useful when creating a VPN with ssh and pppd.

An example:

# pppd $(ptyrdr ssh peer_host pppd noauth) 10.0.0.1:10.0.0.2 noauth

About

Open a PTY and dup it to stdin and stdout.


Languages

Language:C 85.7%Language:Shell 14.3%