Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-04-2011, 05:54 AM   #1
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

Rep: Reputation: Disabled
Angry automatic logon to the telnet sessions - gnome-terminal

Have you ever been wondering how to log automatically to the telnet sessions to avoid typing password every-time you open a new session?

Lets say that you have a default username and password for all devices on the network (cisco-routers)


so you open a terminal and type telnet the terminal asks you about the username and password.

root@laptop# telnet
Connected to
Escape character is '^]'.

Username: username1
Password: ******

Do you have any idea how to force ubuntu to fill those fields automatically for us? There is a function in Win program secure CRT where you can sepecify fields expect: Username, and Password, then you can insert your credentials and Secure crt will log you every time automatically.

Is there anything like this which can be used in Ubuntu Gnome-terminal please?
Some kind of automatic login/script/settings of telnet or terminal?

Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-04-2011, 08:09 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
nothing to do with networking. moved to Linux - Newbie.

You can look at expect to automate stuff like this, although AFAIR most telnet clients will accept a pipe in.

alternatively, stop running telnet. 1993 called, they want their software back etc... use ssh with preshared keys.
2 members found this post helpful.
Old 10-06-2011, 04:11 AM   #3
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

Original Poster
Rep: Reputation: Disabled
option = login by send text string

Hello acid_kewpie,

You are absolutely right about the telnet, but there I do not have an alternative, I cannot convince company to get rid of the telnet, so I have to live with that.

Do you have any ideas how that can be achieved? The automatic logon?

I was also thinking about mapping keys to send text string:



so then when I press F5 terminal will send text to the window and I can be logged in.
But I have played with dumpkeys. loadkeys. crickey and so one more than week, but I was not able to get results from that. I am such a newbie in Linux. I could not find any working guide how to accomplish this even written program for that.

Any ideas please?


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
LXer: Angry Birds Angry with Linux? LXer Syndicated Linux News 1 04-16-2011 08:40 AM
gnome-sessions option not available at logon eddacker Debian 2 02-04-2011 03:54 AM
gnome-terminal starts automatically on gnome logon PenguinWearsFedora Red Hat 4 06-02-2010 05:12 AM
How to Telnet to a server with gnome-terminal? polemon Linux - Newbie 2 07-24-2005 12:48 PM
Automatic KDE Logon? dwpondscum Linux - General 2 04-25-2003 08:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:35 AM.

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