Re: One Time Passwords and Unix PPP

Jeff Buck (jeffb@pegasus.usmicro.net)
Thu, 24 Oct 1996 10:37:08 -0700 (PDT)

On Thu, 24 Oct 1996 jlorenz@bert.sandisk.com wrote:

> How does a Linux user do this. There is no pop up dialog box during the ppp
> login. The username/password is hardcoded in the chat script. Since the passcode
> changes every 60 seconds...this won't work.
>
> Is there a ppp driver for Linux that will prompt the user for a password rather
> than using a hardcoded value in a chat script? Anybody have a pointer to a
> hacked PPP for Linux?
>
How about a shell script that edits the chat script..

#!/bin/sh

echo Enter your username:
read USER
echo Enter your password:
read PASS

sed -e "s/insert_password_here/$PASS/g" -e"s/insert_username_here/$USER/g"
/path/to/template/chat/script > /path/to/temp/chatscript

# (all that on one line)

/usr/bin/chat -f /path/to/temp/chatscript
rm /path/to/temp/chatscript
pppd

# Something like that should work pretty well..