1834465 Members
3375 Online
110067 Solutions
New Discussion

telnet problem

 
Ong Chin Soon
Occasional Contributor

telnet problem

Hi,
I have 2 machines, machine A and machine B. From machine A, I'm able to ping machine B using hostname and ip address but not able to telnet to machine B with the error " telnet : Unable to connect to remote hosts: Connection refused" . In machine B, I'm able to nslookup machine B and able to telnet to machine A. I've checked the /etc/hosts, /var/yp/secureservers, /var/adm/inetd.sec, /etc/resolv.conf, /etc/rc.config.d/namesvrs and nfsconf files but seems like everything is ok. I even plug out the network cable and try to ping machine B to make sure the ip is unique and confirm it is an unique ip. Any idea?
chin soon
9 REPLIES 9
Christian Gebhardt
Honored Contributor

Re: telnet problem

Hi
do you have a line like this
telnet stream tcp nowait root /usr/lbin/telnetd telnetd
in /etc/inetd.conf of machine B ?

after inserting the line you have to reread the configfile with "inetd -c"
Chris
T G Manikandan
Honored Contributor

Re: telnet problem

checking whether the telnetd is enabled in the inetd.conf file is a valid point.

How are the machines placed.
Are the machines in the LAN.

Is there any firewall in between.
Is your port 25 opened for use?

Revert
T G Manikandan
Honored Contributor

Re: telnet problem

check whether the telnetd is running.
Make sure you have entries for telnetd in the inetd.conf file.

how are the machines placed?Are they in the local LAN

Is the port 23 open.

DO you have any files like /etc/hosts.allow and /etc/hosts.deny


Revert


Thanks
Ong Chin Soon
Occasional Contributor

Re: telnet problem

Yes, I've the entry there in inetd.sec file.
chin soon
T G Manikandan
Honored Contributor

Re: telnet problem

check whether the telnetd is running.
Make sure you have entries for telnetd in the inetd.conf file.

how are the machines placed?Are they in the local LAN

Is the port 23 open.

DO you have any files like /etc/hosts.allow and /etc/hosts.deny


Revert


Thanks
Clemens van Everdingen
Honored Contributor

Re: telnet problem

Hi,

Is inetd running at all ?

If so do you have a /etc/hosts.allow file ?
If so is the machine A in there on machine B ?

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Christian Gebhardt
Honored Contributor

Re: telnet problem

Hi
you have to check

/etc/inetd.conf

Chris
Ong Chin Soon
Occasional Contributor

Re: telnet problem

Hi all,

I do not have any /etc/hosts.allow or hosts.deny file in machine B. Anyway, when I reboot the machine B, I 'm able to telnet to this machine. I don't know why but this resolve my problem. Thanks to everyone who give some so useful information. Thanks once again.

Rgds,
Chin Soon
chin soon
Clemens van Everdingen
Honored Contributor

Re: telnet problem

Hi,

I guess your inetd was not running anymore.
Check your /var/adm/syslog/syslog.log file for any clues regarding telnet or inet.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !