[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

telnet (with userId/password as parameters) ??

Posted on 2004-11-18
11
Medium Priority
?
19,221 Views
Last Modified: 2008-03-17
I've seen much discussion on this.  All  I want to do is have the CONVENIENCE of openning a telnet session from
dos to unix and pass the user id and password (so that I'm not prompted each and every time).

Here is the help for my particular dos telnet.  It seems there's not an easy way, but I hope there is.

telnet [-a][-e escape char][-f log file][-l user][-t term][host [port]]
 -a      Attempt automatic logon. Same as -l option except uses
         the currently logged on user's name.
 -e      Escape character to enter telnet client prompt.
 -f      File name for client side logging
 -l      Specifies the user name to log in with on the remote system.
         Requires that the remote system support the TELNET ENVIRON option.
 -t      Specifies terminal type.
         Supported term types are vt100, vt52, ansi and vtnt only.
 host    Specifies the hostname or IP address of the remote computer
         to connect to.
 port    Specifies a port number or service name.
0
Comment
Question by:booksplus
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 2

Accepted Solution

by:
Drew Lake earned 2000 total points
ID: 12616691
booksplus,

As far as I know there are no switches to pass your password threw on the command line.  The only way I know to accomplish this feat is to use a 3rd party application, such as putty.  Putty will remember your userid and password for you.  I hope this helps.

RIHD
0
 

Author Comment

by:booksplus
ID: 12616855
How about just passing in user id?
0
 
LVL 2

Expert Comment

by:Drew Lake
ID: 12616980
telnet -l userid domain.host.com
^
|----------Is the correct syntax I think.
0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
LVL 2

Expert Comment

by:Drew Lake
ID: 12617004
Well I guess there is a catch to what I'm saying.  Lets say your userid and password are the same for the remote computer and the PC your currently logged into you could then use: telnet -a domain.host.com  However this is the only way to pass both userid and password.
0
 

Author Comment

by:booksplus
ID: 12617046
From my first posting here is the help when using -l
" -l      Specifies the user name to log in with on the remote system.
         Requires that the remote system support the TELNET ENVIRON option."

I tried "telnet -l userId domain.host.com" and it doesn't work.  Is there something to TELNET ENVIRON I have to do
on the unix side?

FYI - my unix password is not the same as my LAN password (dos password).
0
 
LVL 2

Expert Comment

by:Drew Lake
ID: 12617278
check out this link and see if this helps you any:  http://linux.math.tifr.res.in/manuals/man/telnet-nossl.html
0
 

Expert Comment

by:07aproan
ID: 12677537
use a telnet Shell, like the one provided by Win98 is much easier and much more efficient.
0
 

Author Comment

by:booksplus
ID: 12690011
07aproan,

Could you please elaborate - thanks.
0
 

Expert Comment

by:07aproan
ID: 12692313
what i am trying to get to is:
to use another program to use telnet

for example you could try this :http://www.softlookup.com/display.asp?id=6814
0
 
LVL 2

Assisted Solution

by:Drew Lake
Drew Lake earned 2000 total points
ID: 12695633
booksplus,

As I have already agreed with 07aproan as in my first post.  The use of Putty:  http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

0
 
LVL 2

Expert Comment

by:maphew
ID: 12775454
try:

echo {password} | telnet -l {username}  host.com

but you really should not use telnet if you have any choice in the matter. SSH is much safer.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month19 days, 5 hours left to enroll

834 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