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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

telnet was refused

Status
Not open for further replies.

scottgai

Programmer
Dec 12, 2001
11
US
Dear all,
Please help me with this problem.
I have a Sun box with the Solaris 7, and now got such a problem. when I want to telnet to this machine from other site, the system will refuse my request by say "Unable to connect to remote host: Connection refused". This also will happen even I start telnet on this machine by typing "telnet localhost". Just before this problem appears,
I have restarted the daemon process "inetd". Does this have any effect on the telnet service?

Thanks a lot!
Scott
 
The inetd does control the telnet server if it was set up the default way.

You need to look at your /etc/inetd.conf file and see if telnet is defined there, post the line here so we can check it.

Make sure that port 23 is defined in /etc/services as well. IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
aixmurderer,
Thanks a lot for your reponse!
The line in file /etc/inetd.conf about telnet is listed below:
"telnet stream tcp nowait root /usr/sbin/in.telnetd in.telnetd"
And also there is a line in file /etc/services, which is listed here:
"telnet 23/tcp"

I'd like to describe what I've done in order to help understand this problem.
The start point is that I edited the file inetd.conf to add a cvs service, the added line is:
"cvsserver stream tcp nowait root /usr/bin/cvs cvs --allow
-root=/ora04/cvsroot -f --allow-root=/usr3isos/CVS_ISOS pserver"
then to let the new cvs service be effective, I manully killed and restarted the process inetd using the following command:

kill 'inetd's pid'
/usr/sbin/inetd -s &

I don't know whether this is the cause of the problem.


 
If it helps you can stop and restart the inetd process by issuing the following:

kill -HUP <PID_of_inetd>

Hope this helps.
 
Sorry, that doesn't seem to work, not sure why, try:

/etc/rc2.d/S72inetsvc start

Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top