Professional Web Applications Themes

Is it possible to signon to telnet using a script, so I do not have to enter userid and password - UNIX Programming

Is it possible to signon to telnet using a script, so I do not have to enter userid and password...

  1. #1

    Default Is it possible to signon to telnet using a script, so I do not have to enter userid and password

    Is it possible to signon to telnet using a script, so I do not have to
    enter userid and password

    George Guest

  2. #2

    Default Re: Is it possible to signon to telnet using a script, so I do not have to enter userid and password

    George Kooper <com > writes:
     

    You don't want to do that.

    Consider using ssh with public key authentication, instead...

    --
    Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
    Dept. of Physics, Univ. of Padova, Italy ROT13: vasa.vg
    Maurizio Guest

  3. #3

    Default Re: Is it possible to signon to telnet using a script, so I do not haveto enter userid and password

    George Kooper wrote:
     

    You mean you wanna run telnet in a script, but telnet forces using /dev/tty?
    This is what program <i>expect</i> good for.
    Lorinczy Guest

  4. #4

    Default Re: Is it possible to signon to telnet using a script, so I do not haveto enter userid and password



    Maurizio Loreti wrote:
     
    >
    > You don't want to do that.
    >
    > Consider using ssh with public key authentication, instead...
    >
    > --
    > Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
    > Dept. of Physics, Univ. of Padova, Italy ROT13: vasa.vg[/ref]

    I agree that it's usually if not always a bad idea, but yes, you can do it.
    expect is a product that an do that. Of course, you would have to
    install it and be prepared to live with the trouble that passwords in
    scripts can cause. If it's your home system, go right ahead. If it's
    somebody else's system, I wouldn't do that.

    Speaking only for myself,

    Joe Durusau


    joe Guest

  5. #5

    Default Re: Is it possible to signon to telnet using a script, so I do not have to enter userid and password

    In article <com>, joe durusau wrote:
    : Maurizio Loreti wrote:
    :
    :> George Kooper <com > writes:
    :>
    :> > Is it possible to signon to telnet using a script, so I do not have to
    :> > enter userid and password
    :>
    :> You don't want to do that.
    :>
    :> Consider using ssh with public key authentication, instead...
    :>
    :> --
    :> Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
    :> Dept. of Physics, Univ. of Padova, Italy ROT13: vasa.vg
    :
    : I agree that it's usually if not always a bad idea, but yes, you can do it.
    : expect is a product that an do that. Of course, you would have to
    : install it and be prepared to live with the trouble that passwords in
    : scripts can cause. If it's your home system, go right ahead. If it's
    : somebody else's system, I wouldn't do that.
    :
    About scripted Telnet connections (and FTP, and SSH, etc):

    http://www.columbia.edu/kermit/ckscripts.html

    About security on Telnet (and FTP) connections:

    http://www.columbia.edu/kermit/faq.html#telnet

    About why 'expect' is not necessarily the best way to automate a connection
    between two computers:

    http://www.columbia.edu/kermit/ftpscripts.html

    (relating to FTP but applies equally to Telnet).

    - Frank
    Frank Guest

  6. #6

    Default Re: Is it possible to signon to telnet using a script, so I do not have to enter userid and password

    >>> Maurizio Loreti wrote:
     [/ref]
    ML> You don't want to do that.
    ML> Consider using ssh with public key authentication, instead...

    You don't want to give radical and silly advice without any knowledge
    of real situation.
    There too many devices which can telnet or even ssh but can't public key
    authentication.


    -netch-
    Valentin Guest

Similar Threads

  1. Where to store UserID/Password
    By Fernandez in forum ASP.NET Security
    Replies: 1
    Last Post: July 30th, 04:04 PM
  2. userid and password in html ?
    By George Sambataro in forum Web Design
    Replies: 0
    Last Post: June 9th, 01:24 PM
  3. TELNET and USERId's
    By needhelper in forum PERL Modules
    Replies: 3
    Last Post: September 4th, 04:22 PM
  4. internet userid password login
    By Lynn in forum Windows Setup, Administration & Security
    Replies: 0
    Last Post: July 25th, 05:00 AM
  5. Userid & password fail for newlist
    By psale webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 8th, 11:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139