Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-09-2005, 12:56 PM   #1
Registered: Jan 2005
Distribution: Arch
Posts: 35

Rep: Reputation: 15
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?
Old 11-09-2005, 02:58 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,553
Blog Entries: 15

Rep: Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494
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.
Old 11-09-2005, 03:02 PM   #3
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117

Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How is it possible to login as root with Perl script and used manu0573 Linux - Software 1 07-27-2005 06:22 PM
automate script w/ cron viniosity Linux - Newbie 5 02-02-2005 04:13 PM
Kermit Script to Automate FTP SSL/TLS fiddelm3742 Linux - Software 0 05-19-2004 12:53 AM
telnet login via shell script lethe Linux - General 8 05-13-2002 10:31 AM
Script that would automate adding users zyft02 Linux - Newbie 4 02-26-2002 12:19 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration