Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-09-2005, 11:56 AM
|
#1
|
Member
Registered: Jan 2005
Distribution: Arch
Posts: 35
Rep:
|
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?
|
|
|
11-09-2005, 01: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,831
|
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.
|
|
|
11-09-2005, 02:02 PM
|
#3
|
Member
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117
Rep:
|
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 09:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|