System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to telnet a remote SUSE box

SOLVED
Go to solution
lavs
Occasional Advisor

Unable to telnet a remote SUSE box

I am unable to do telnet on suse machine.
It is giving following error message:

Tset: Unknown terminal type tty

We have checked the services on suse machine. It is working fine. But when executing remotely it is giving above message.

Thanks in Advance..
11 REPLIES
Michal Kapalka (mikap)
Honored Contributor

Re: Unable to telnet a remote SUSE box

hi,

for security reasoon its better use ssh instead of telnet.

check if the ssh is ok.

mikap
Torsten.
Acclaimed Contributor

Re: Unable to telnet a remote SUSE box

What terminal emulator you are using?

# echo $TERM

on your server.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
lavs
Occasional Advisor

Re: Unable to telnet a remote SUSE box

Torsten...i give the command echo $TERM...its set as "ansi"

Michal...you are right that ssh is good as compare to telnet...but we are doing this operation through vbscript by using a w3socket. Following is the snipt of code...

Set obj=CreateObject ("socket.tcp")
obj.DoTelnetEmulation=True
obj.TelnetEmulation="TTY"
obj.Host=systemIP&":23"
obj.Open
obj.WaitFor "login:"
obj.SendLine user
obj.WaitFor "password"
obj.SendLine pwd
obj.WaitFor "$"
obj.SendLine strCommand
obj.WaitFor "$"
obj.Close
set obj=Nothing
Michal Kapalka (mikap)
Honored Contributor

Re: Unable to telnet a remote SUSE box

hi,

try tu set the terminal in vt100

mikap
lavs
Occasional Advisor

Re: Unable to telnet a remote SUSE box

thanks Mikchal for ur quick reply...but i didn't get that how to do these settings..can u explain me in bit detail....
Michal Kapalka (mikap)
Honored Contributor

Re: Unable to telnet a remote SUSE box

hi,

if you are using BASH as default shell on linux

them setup this

in the file ~/.bash_profile or .bashrc

add this line :

export TERM=linux ( or vt100 )

and them logout or use source and the edited file.

mikap
lavs
Occasional Advisor

Re: Unable to telnet a remote SUSE box

hi

I have set the line "export TERM= vt100" in .bashrc file. But still getting same error. BASH is not default shell of this machine.
Steven E. Protter
Exalted Contributor

Re: Unable to telnet a remote SUSE box

Shalom,

I would try setting term to vt100 or vt220 and see if that helps.

This should be set up with the application you are connecting with.

Or: You could stop using telnet which authenticates in clear text and use a ssh client like putty

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
macosta
Trusted Contributor
Solution

Re: Unable to telnet a remote SUSE box

In your VB script, it's setting the emulation to "TTY," which a login script on the remote machine doesn't seem to like (or more accurately, tset doesn't like.)

I'm not sure what the valid values are, but you'll need to change the TelnetEmulation variable to something like VT100.
lavs
Occasional Advisor

Re: Unable to telnet a remote SUSE box

thanks Macosta...i think its working....
Ram_975310
Occasional Advisor

Re: Unable to telnet a remote SUSE box

Hello

 

I am also getting the same error message. Please could you tell me how to get the correct correct emulation variable.

 

Thanks in advance.

 

 

Ram