1755638 Members
3408 Online
108837 Solutions
New Discussion юеВ

About telnet

 
SOLVED
Go to solution
juno2
Super Advisor

About telnet

I have setting up my RH8 Linux server , I have started the telnet service , now it can telnet to local host , but it don't accept other machine to telnet into it , ( ping is OK ) , can suggest what is problem in my setting ? thx.
11 REPLIES 11
Claudio Cilloni
Honored Contributor

Re: About telnet

try disabling the firewall:

# service iptables stop

hth
Claudio
Stuart Browne
Honored Contributor

Re: About telnet

What error message do you get when you try to telnet in from the other machine?

Are you usnig TCP wrappers (what are the contents of /etc/hosts.allow and /etc/hosts.deny) ?

What answer did you give to the Firewall questions during the installation?

What do these two commands return:

ipchains -nvL
iptables -nvL

These commands show the contents of your firewall (if one is in use). If they show information, you'll either need to open a hole in them (in which case, paste the reults here so we can give you the right command), or to disable them completely (use either 'service iptables stop' or 'service ipchains stop', depending on which gave output.

If it just hangs for a few minutes when telnetting in, it's probably due to a reverse-lookup on the IP. Try adding the IP of the other machine to the /etc/hosts file of the server, or by correctly configuring a DNS server (either your own if it's a private network, or a remote for external 'real world' addresses).

Details Juno. You should know by now that we need more details.
One long-haired git at your service...
juno2
Super Advisor

Re: About telnet

I never setup the firewall , just use the default setting .
juno2
Super Advisor

Re: About telnet

the error message is
telnet: connect to address 168.6.85.4: Connection refused
Stuart Browne
Honored Contributor
Solution

Re: About telnet

The default is for 'medium firewall'.

And the error message definately points to firewall.

Do those two commands, and show us the output.
One long-haired git at your service...
juno2
Super Advisor

Re: About telnet

I have another problem , the server can accept rcp from other host , even I have update /etc/securetty and /root/.rhosts , what service need to start and want setting should be modify in my system ? Thanks in advance.
juno2
Super Advisor

Re: About telnet

Thx , I have disable the firewall , it is ok now .
juno2
Super Advisor

Re: About telnet

how can i permenently disable the firewall ? thx
Alexander Chuzhoy
Honored Contributor

Re: About telnet

Hey Juno2!
How about assigning points to all the people who helped you?
best regards!