Automatic login for Telnet

Posted on 2004-11-19
Last Modified: 2007-12-19

I want to telnet some machine and I wonder is there any telnet client that allowes interaction within.

I tried :

echo user
echo password

from windows and in bash.

Any pointers?
Question by:muhalok

    Expert Comment

    telnet should be enabled on the pc which u r telnetting.
    LVL 3

    Expert Comment

    On Windows try:
    telnet -a
    This option uses the currently logged on (on client Windows machine) user's name.
    LVL 8

    Accepted Solution

    In former times I used the program CRT-console (?) for just that same feature - you can enter script-like expectations and answers

    for example:

    expect> "user:"
    answer> "your username"
    expect> "password:"
    answer> "your password"

    these answers where filled in automatic, when the expected ascii-code matches

    Link to the software:

    good luck
    LVL 7

    Expert Comment

    Try PuTTY -

    There is a option for a script file: `-m': read a remote command or script from a file

           The `-m' option performs a similar function to the `Remote command'
           box in the SSH panel of the PuTTY configuration box (see section
           4.17.1). However, the `-m' option expects to be given a local file
           name, and it will read a command from that file. On most Unix
           systems, you can even put multiple lines in this file and execute
           more than one command in sequence, or a whole shell script; but this
           will not work on all servers (and is known not to work with certain
           `embedded' servers such as routers).

           This option is not available in the file transfer tools PSCP and

    LVL 8

    Expert Comment

    My solution will work (if used) and i think bstrauss too ... the "telnet -a" i can't verify at that moment - so i suggest split to bstrauss and me

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    #Citrix #Citrix Netscaler #HTTP Compression #Load Balance
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now