Operating System - Linux
1827807 Members
2261 Online
109969 Solutions
New Discussion

Re: LInux Telnet questions

 
SOLVED
Go to solution
Chad_52
Occasional Contributor

LInux Telnet questions

When I try to telnet into my Linux box I get the following error.

Could not open conection to the host, on port 23:connect Failed

I have set securty level to none. Meaning the Firware is disabled. How do I enable POrt 23
11 REPLIES 11
K.C. Chan
Trusted Contributor
Solution

Re: LInux Telnet questions

AFAIK, telnet is disable by default. Is there any reason why you are not using ssh, it's much more secure than telnet. But if you want to turn it on you will have to enable in /etc/xinet.d and edit telnet file (assuming you are running redhat; not sure where this is located in other flavor of linux)
Reputation of a thousand years can be determined by the conduct of an hour
Chad_52
Occasional Contributor

Re: LInux Telnet questions

how do I get SSH?

Also I would like to have telnet available. This is only a test box so security is NOT and issue
K.C. Chan
Trusted Contributor

Re: LInux Telnet questions

it's automatically available and enable among linux box, just type "ssh -l ", you may want to configure it to fit your security need as time pass, but I would suggest you take advantage of libwrap (tcpwrapper) with telne and ssh; you can put some restrictions on who can log into your server, do man on hosts.allow. good luck.
Reputation of a thousand years can be determined by the conduct of an hour
Chad_52
Occasional Contributor

Re: LInux Telnet questions

I am telneting from a WIn XP box to linux so how can I use SSH?
K.C. Chan
Trusted Contributor

Re: LInux Telnet questions

dude, do a search on google for "putty", it's free. have at it.
Reputation of a thousand years can be determined by the conduct of an hour
Alexander Chuzhoy
Honored Contributor

Re: LInux Telnet questions

if you have telnet server installed -then issue this command:
chkconfig telnet on
this will start the telnet server service.


If you;d like to be able to login as root, then you'll have to add the following entries to /etc/securetty file:
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5


Best Regards....
Huc_1
Honored Contributor

Re: LInux Telnet questions

Today, I would only use ssh !, unless you are in a very secure isolated lan, telnet send the characters you type in clear, so any one can read your username and pass with a sniffer.

putty I would also recommand on the MS Window side.

but if you are in a safe isolated and secure enviroment then Alexander is the way.

Tell us if you have succeded

J-P
Smile I will feel the difference
Mark Grant
Honored Contributor

Re: LInux Telnet questions

I would add here that getting telnet to work will depend on your distro too.

For most distro's and most unix like OS's, you'll need to check that the "telnetd" option is not commented out in /etc/inetd.conf and restart inetd.

On redhat, you'll have to see if you hab an /etc/xinetd.d/telnet and edit it remove the "deny" bit.

I personally am not so averse to telnet as most people and as long as the box is not on the internet and/or you don't care too much about it then it is a nice simple way of logging into a machine.
Never preceed any demonstration with anything more predictive than "watch this"
David Asgeirsson
Valued Contributor

Re: LInux Telnet questions

Another good terminal program for Windows is TeraTermPro. It is freeware and I downloaded it from tucows.com. It handles BOTH telnet and SSH1, SSH2 connections. Very small and fast.
Steven E. Protter
Exalted Contributor

Re: LInux Telnet questions

Putty is a good free ssh client

To install openssh, get openssh from redhat.com or get it off your original install cd's

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
Manoj Kumar A
Advisor

Re: LInux Telnet questions

In order to resolve the issue, try ping to the telnet system from the command console. then make sure telnetd demon is started, if not start the telnet demon.

to start the telnetd:

#/etc/init.d/telnetd start

Note: make sure the telnet is installed in the system.