Women in Technology

Hear us Roar



Article:
  VPN on Mac OS X
Subject:   Why use pty-redir
Date:   2004-11-01 19:18:35
From:   went
Why use pty-redir when ppd already has a ``pty'' command line switch within it? In other words, a command along the lines of this will work and require fewer steps than the original script:


/usr/sbin/pppd pty '/usr/bin/ssh -t vpn@utopia.lifehertz.com' local noauth proxyarp<-b>


In addtion, note the ``-t'' option used with ssh so that it knows to force a pseudo-tty allocation.


Finally, note that the ``defaultroute'' option is available and could remove even a few more steps from the original script. The other nice thing about this option is that pppd will shoulder the responsibility of deleting the route whenever pppd needs to quit.


Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Why use the pty-redir hack?
    2004-11-01 19:22:08  went [View]

    Why use pty-redir when ppd already has a ``pty'' command line switch within it? In other words, a command along the lines of this will work and require fewer steps than the original script:


    /usr/sbin/pppd pty '/usr/bin/ssh -t vpn@utopia.lifehertz.com' local noauth proxyarp


    In addtion, note the ``-t'' option used with ssh so that it knows to force a pseudo-tty allocation.


    Finally, note that the ``defaultroute'' option is available and could remove even a few more steps from the original script. The nice things about these options is that pppd will shoulder the responsibility for cleanly shutting down the ssh and deleting the route whenever pppd needs to quit.