1820072 Members
2572 Online
109608 Solutions
New Discussion юеВ

Telnet

 
SOLVED
Go to solution
Stuart Mckiggan
Occasional Advisor

Telnet

i have just set up a linux box and would like to telnet to it but get messages saying connection refused, i can telnet from it but not too it, im using redhat v7, done rpm qa ?? grep telnet and it shows both telnet and telnet-server. also /etc/xinetd.d/telnet is set: disable no

can anyone help please, thanks.

stuart
"Heavan Is A Program"
7 REPLIES 7
benoit Bruckert
Honored Contributor

Re: Telnet

Hi stuart,
First step, try telnet 127.0.0.1 from your redhat box,
Check also netstat -a | grep telnet to see if *.telnet is in LISTEN state.
Did you restart xinetd after changing telnet to disable no ?
If netstat is Ok and telnet 127.. also then the trouble is in autorization from the network to access to your server.

hth
Benoit
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)
Steven Mertens
Trusted Contributor

Re: Telnet

hi,

Its probably your default redhat firewall
settings.

Do the following :

ipchains -F
ipchains -X

and try to telnet now ?
Does it work ?

to disable the firewall do permanently :

chkconfig --del ipchains

hope this helps

Steven
Peter Kloetgen
Esteemed Contributor

Re: Telnet

Hi Stuart,

did you think about your /etc/securetty file? If you simply rename it telnet should work:

mv /etc/securetty /etc/securetty.save

Allways stay on your bright side of life!

Peter
I'm learning here as well as helping
Stuart Mckiggan
Occasional Advisor

Re: Telnet

hi,

thanks benoit but when i telnet it says connection refused, netstat -a ?? grep telnet does not display anything and xinetd has been restarted.

Steven,

used ipchains -F & -X commands but it still is not working.

Peter,

i could not find a dir called my on root only one i found was a file called securetty in the main etc folder, called this telnet but still nothing.

please help!!
"Heavan Is A Program"
Federico Joselevich
New Member
Solution

Re: Telnet

Hi stuart,

it seems, for benoit's question, that you don't have the telnet daemon running.

If you try that you'd get something like this:

[root@zeus /etc]# netstat -a | grep telnet
tcp 0 0 *:telnet *:* LISTEN

into inetd.conf you'd also have a line like this:
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd

if is in the inetd.conf file it will be loaded automagicaly.
Oren Amit
Advisor

Re: Telnet

Hi Stuart,

Telnet has both a client and a server.
Make sure you have the server installed, the package name is telnet-server-.
If it is installed, go to /etc/xinetd.d and look at the telnet file:
make sure that the disable field is set to no.
If it was "yes" change it to no save the file and restart xinetd (# service xinetd restart).
HTH.
Oren
Stuart Mckiggan
Occasional Advisor

Re: Telnet

thank you all for your help i can now log in to the linux box from remote terminals, the problem was that the inetd command was not running in system config, thanks again everyone. stuart
"Heavan Is A Program"