1837960 Members
2365 Online
110124 Solutions
New Discussion

telnet

 
sheevm
Regular Advisor

telnet

Hi!

I am working with one of the sun server. I am tryning to telnet to that box from one of the other sun server IT DOES NOT LET ME it says unable to connect. But I can ping by IP or hostname. Is there any file I need to add the user? Both the servers are o the same subnet.

Thanks

Raji
be good and do good
6 REPLIES 6
PIYUSH D. PATEL
Honored Contributor

Re: telnet

Hi,

Check in the /etc/hosts file of the remote machine and the local machine and add the ip adress and hostnames.

Check whether the telnet service is enabled:
/etc/inetd.conf and /etc/services

After making changes in inetd.conf execute

# inetd -c

Piyush

PIYUSH D. PATEL
Honored Contributor

Re: telnet

Hi,

Also check

/var/adm/inetd.sec file if telnet is disabled for certain hosts

Piyush
PIYUSH D. PATEL
Honored Contributor

Re: telnet

Hi,
Are you using DNS also

telnet uses the resolver routines to look up the host you are telnetting from.

If the resolver services are configured to use a nameserver and the nameserver is unavailable, then the default timevalue is approximately 1minute.

You should make sure your nameservers are ok by issuing a nslookup command.

check /etc/resolv.conf file also.
Piyush
PIYUSH D. PATEL
Honored Contributor

Re: telnet

Hi,

Last option
On remote server

#/sbin/init.d/inetd stop
#/sbin/init.d/inetd start

Piyush
PIYUSH D. PATEL
Honored Contributor

Re: telnet

Hi,

Your problem is solved ??? Hope it is.

Piyush
Arockia Jegan
Trusted Contributor

Re: telnet

Because of the follwoing reasons you may have the problem.

Firewall restriction:

Are your sun servers in the different network and separated by firewall? If yes, the telnet access may be restricted in the firewall side. Make sure that the telnet port is opened in the firewall.

System side restriction:

As many guys mentioned the telnet service may be disabled at the system side. Check the /etc/inetd.conf and /etc/services files to find out that. If the specific lines are commented out in those files , uncomment those lines and run inetd -c to restart the service.

Arockia.