Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet : connection closed by foreign hosts

Status
Not open for further replies.

subhro123

IS-IT--Management
Aug 4, 2004
1
US
here is the problem..

telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


SunOS 5.7

Connection closed by foreign host.
------------------------------------------------------------
FTP works fine.
Also same result while telent with Ip address.


checked the following:
1. no /etc/hosts.deny or allow file
2. No tcp wrapper installed
3./bin/login file exist
4./usr/bin/in.telnetd exists
5.telnet not commenetd out in /etc/inetd.conf file
6. tcp port 23 on /etcservices file
7. .rhosts and hosts.equiv present



 
Are you trying to login as root? If so, it's possible that the entry CONSOLE=/dev/console in /etc/default/login prevents login by root from anywhere but the console. To enable such login comment out (#) the entry. Note that for security reasons, this is not a recommended approach.
 
can you telnet to the logical name (not localhost)?
did you run snoop during telnet test?
are there entries in /var/adm/messages?
did you truss telnetd? (with options to follow child processes, since your telnet session will be a forked child process)

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Has system dropped into single-user mode. I have received similar messages is system has failed. You are unable to enter passwd.
 
Also check /etc/pam.conf for sanity. To find out whether this is the problem try adding this to /etc/syslog.conf (note that the white space in the middle is tabs, not spaces):

[tt]auth.debug /tmp/auth.debug[/tt]

Then touch /tmp/auth.debug ; pkill -HUP syslogd, and re-open the telnet session. Do any errors show up in /tmp/auth.debug?

Remember to remove the entry from /etc/syslog.conf and pkill -HUP syslogd again when you are finished or you could end up with a very large log file in /tmp!

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top