Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
I'm trying to write a command for the shell to automatically telnet into a computer then enter the username and password. So far I have only been able to telnet in; I can't figure out how to get it to enter the usr/pswd. My command line looks like
konsole -e telnet -c (host name)
I'm not sure where to go after this... can anyone help? Thanks!
I just looked in the man page and it suggests trying:
telnelt -a -l <username> <remote hostname>
This automatic login does not work on machines that can not deal with ENVIRON option. As far as I see the command, you still need to type the password.
But what I was actually looking for was the command to put into the execute field of the Konsole properties, so that when I double click on the terminal shortcut, it runs the script and logs me in automatically.
Originally posted by trickykid Add the konsole -e in front of what he mentioned... ??
Yeah, tried it... no dice. Has the same effect as my original command- it gets as far as the username prompt. I imagined there might be some command to just initiate a string of text in a script... i.e., telnet <enter> hostname <enter> username <enter> password <enter>. I've been searching all afternoon, and I can't seem to find anything that will do it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.