telnet (with userId/password as parameters) ??

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.
booksplusAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Drew LakeCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
booksplusAuthor Commented:
How about just passing in user id?
0
Drew LakeCommented:
telnet -l userid domain.host.com
^
|----------Is the correct syntax I think.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Drew LakeCommented:
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
booksplusAuthor Commented:
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
Drew LakeCommented:
check out this link and see if this helps you any:  http://linux.math.tifr.res.in/manuals/man/telnet-nossl.html
0
07aproanCommented:
use a telnet Shell, like the one provided by Win98 is much easier and much more efficient.
0
booksplusAuthor Commented:
07aproan,

Could you please elaborate - thanks.
0
07aproanCommented:
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
Drew LakeCommented:
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
maphewCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.