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 gkittelson 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 Host

Status
Not open for further replies.

unixbrown

MIS
May 9, 2002
1
US
Im running SunOS 5.7 when I telnet to the machine I'm getting Connection closed by Foreign Host and it will not let me login. I know telnet is running because I can go to the console and telnet from the box to other machines.
How can I figure out what causing this problem.
 
Hi,

Check if telnet daemon is running.
ps -ef | grep telnetd
OR
netstat -a | grep telnet

In case you dont have telnet daemon running, edit /etc/inetd.conf and uncomment the line telnet and restart inetd by "kill -HUP inetd_id".

Hope this help.

regards,
feroz
 
Are you trying to telnet as root?

If so, it may be that /etc/default/login contains the line:

CONSOLE=/dev/console

If you comment this out, you should be able to telnet from a remote machine. Incidentally, this is not recommended for security purposes, much safer to su to root from your normal login if root access is required. HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top