-   Linux - Networking (
-   -   how to automate telnet login, script or something (

kiwibird 11-09-2005 11:56 AM

how to automate telnet login, script or something
Hi. I need to telnet to a certain server and enter a username and password each time I start up my computer, to get internet access, and I was wondering if there's a simple way to automate this, of course without storing the password as plaintext. Is there maybe even a common way to do these things in Linux? If not, how would I make / where would I find a simple script to do it?

MensaWater 11-09-2005 01:58 PM

telnet is very insecure. You should use ssh instead if possible. (You can get Putty on your Windows machine to allow you to o ssh to Linux - Linux typically has ssh installed by default.)

With ssh installed you can setup an authorized_keys file on the Linux side that has a key from your workstation so that any time you login it doesn't require a password at all.

Back_to_Linux 11-09-2005 02:02 PM

try to use "expect" to automat login procedure.
ssh is the minimum for an automated login, because noone can control the output (you are automated to leave your box), anyone can listen your communication.

All times are GMT -5. The time now is 10:30 PM.