LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-09-2005, 12:56 PM   #1
kiwibird
Member
 
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
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
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
Back_to_Linux
Member
 
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.
 
  


Reply


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 telnet.pm 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


All times are GMT -5. The time now is 07:58 PM.

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