A couple of us on campus use shh tuneling to access our private e-mail accounts on our home machine. Recently, "The Man" installed some firewall software that requires us to authenticate a connection to the 'net. If using Windows or Linux GUI, a standard dialog box pops up, you enter your username and password info click 'OK' and you're good to go.
From command line Linux, if you run something that needs access to the net, no prompt is displayed and the system hangs until a connection time out.
We found a way around this by running lynx and requesting a common sit like
www.somesite.com.
lynx launches, requests the site, the firewall says "Hey, you're not authorized" then askes for a username.
Code:
Username for 'FW-1. Reason: no user FW-1 ' at server 'XXX.XXX.XXX.XXX':
You enter your user name then...
You enter your password and your in.
You now have an authenticated connection to the net to use as you please.
The session expires after X minutes or X minutes of inactivity. (Haven't figured that one out yet.
What we want to do is run a cron job that will automate the above process.
1) Launch lynx and request a site
2) Enter username and password when and if prompted
We're stuck on how to automate the entry of the username and password.
Anyone have any ideas?