May 9, 2007 #1 surfguy Technical User May 4, 2007 14 IT HI All, How can I enable telnet on my AIX server? Regards, Riccardo
May 9, 2007 Thread starter #2 surfguy Technical User May 4, 2007 14 IT once i set it, do i need to reboot the box? regards, Riccardo Upvote 0 Downvote
May 9, 2007 1 #3 TSch Technical User Jul 12, 2001 557 DE Hi there, you have to edit the /etc/inetd.conf file. Just remove the # in front of the line containing the telnet entry. After that perforam a refresh -s inetd and if that does not work restart the subsystem using stopsrc -s inetd startsrc -s inetd There's no need do reboot. However ... Telnet should be enabled by default on your system. How comes it is disabled ?? Regards Thomas Upvote 0 Downvote
Hi there, you have to edit the /etc/inetd.conf file. Just remove the # in front of the line containing the telnet entry. After that perforam a refresh -s inetd and if that does not work restart the subsystem using stopsrc -s inetd startsrc -s inetd There's no need do reboot. However ... Telnet should be enabled by default on your system. How comes it is disabled ?? Regards Thomas
May 9, 2007 Thread starter #4 surfguy Technical User May 4, 2007 14 IT Well it was disabled for security reason.... Anyway, deleted the "#", then start/stop inetd, but when i try to telnet i get this error: telnet 1.2.3.4 connecting to 1.2.3.4...Could not open connection to the host, on port 23: Connect Failed any suggestion? Regards, Riccardo Upvote 0 Downvote
Well it was disabled for security reason.... Anyway, deleted the "#", then start/stop inetd, but when i try to telnet i get this error: telnet 1.2.3.4 connecting to 1.2.3.4...Could not open connection to the host, on port 23: Connect Failed any suggestion? Regards, Riccardo
May 9, 2007 #5 khalidaaa Technical User Jan 19, 2006 2,323 BH can you ping your system? Upvote 0 Downvote
May 9, 2007 #6 TSch Technical User Jul 12, 2001 557 DE Now that's strange ... This is supposed to do the trick. Well, let's see ... First of all the inetd.conf line should look like this: telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a What do you get, when you run ps -ef | grep inetd ? The process must have the current date if you did a stopsrc and startsrc ... What's the output of lssrc -a | grep inetd ? Does the process number shown there change when you perform another stopsrc and startsrc on inetd subsystem an the repeat the lssrc command ? Anyway the subsystem should show up as "active" ... Regards Thomas Upvote 0 Downvote
Now that's strange ... This is supposed to do the trick. Well, let's see ... First of all the inetd.conf line should look like this: telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a What do you get, when you run ps -ef | grep inetd ? The process must have the current date if you did a stopsrc and startsrc ... What's the output of lssrc -a | grep inetd ? Does the process number shown there change when you perform another stopsrc and startsrc on inetd subsystem an the repeat the lssrc command ? Anyway the subsystem should show up as "active" ... Regards Thomas
May 9, 2007 #7 TSch Technical User Jul 12, 2001 557 DE Here's another thing you might check: Is there a file existing on your machine called /etc/hosts.allow /etc/hosts.deny ? If so rename these files (e.g. hosts.allow.save / hosts.deny.save), restart the inetd subsystem and try again to telnet to your machine ... Regards Thomas Upvote 0 Downvote
Here's another thing you might check: Is there a file existing on your machine called /etc/hosts.allow /etc/hosts.deny ? If so rename these files (e.g. hosts.allow.save / hosts.deny.save), restart the inetd subsystem and try again to telnet to your machine ... Regards Thomas
May 9, 2007 Thread starter #8 surfguy Technical User May 4, 2007 14 IT Hi All, I can ping the AIX box, in inetd.conf i have this line: telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a ps -ef | grep inetd root 34366 36918 0 13:03:21 - 0:00 /usr/sbin/inetd prosys 44516 55840 0 13:53:06 pts/0 0:00 grep inetd 22: lssrc -a | grep inetd inetd tcpip 34366 active Then i was looking for those files /etc/hosts.allow /etc/hosts.deny, but i can't find them... Regards, Riccardo Upvote 0 Downvote
Hi All, I can ping the AIX box, in inetd.conf i have this line: telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a ps -ef | grep inetd root 34366 36918 0 13:03:21 - 0:00 /usr/sbin/inetd prosys 44516 55840 0 13:53:06 pts/0 0:00 grep inetd 22: lssrc -a | grep inetd inetd tcpip 34366 active Then i was looking for those files /etc/hosts.allow /etc/hosts.deny, but i can't find them... Regards, Riccardo
May 9, 2007 #9 TSch Technical User Jul 12, 2001 557 DE Hello again, check the /etc/services file. It should contain the following lines without # in front of it: telnet 23/tcp # Telnet telnet 23/udp # Telnet Regards Thomas Upvote 0 Downvote
Hello again, check the /etc/services file. It should contain the following lines without # in front of it: telnet 23/tcp # Telnet telnet 23/udp # Telnet Regards Thomas
May 9, 2007 #10 TSch Technical User Jul 12, 2001 557 DE Oh, and one more thing ... Could there be a firewall somewhere in your network blocking Port 23 ? Upvote 0 Downvote
May 9, 2007 Thread starter #11 surfguy Technical User May 4, 2007 14 IT TSch i'm trying from a machine that is in the same network, in /etc/services telnet has a comment "#", i deleted it, do i need to stop/start something? Regards, Riccardo Upvote 0 Downvote
TSch i'm trying from a machine that is in the same network, in /etc/services telnet has a comment "#", i deleted it, do i need to stop/start something? Regards, Riccardo
May 9, 2007 #12 p5wizard IS-IT--Management Apr 18, 2005 3,165 BE yes, refresh -s inetd again. also make user that the telnetd executable is still there... ls -l /usr/sbin/telnetd HTH, p5wizard Upvote 0 Downvote
yes, refresh -s inetd again. also make user that the telnetd executable is still there... ls -l /usr/sbin/telnetd HTH, p5wizard
May 9, 2007 #13 TSch Technical User Jul 12, 2001 557 DE Hi, as far as I know you won't have to restart anything after that ... But a stopsrc and startsrc on inetd can never hurt ;-) Did the line look like this ? #telnet 23/tcp # Telnet ? Then it's ok to delete the # Don't delete the # behind 23/tcp You might also check, whether your user is telnet enabled using smitty user There should be a line containing User can LOGIN REMOTELY(rsh,tn,rlogin) This has to be set to "true". Regards Thomas Upvote 0 Downvote
Hi, as far as I know you won't have to restart anything after that ... But a stopsrc and startsrc on inetd can never hurt ;-) Did the line look like this ? #telnet 23/tcp # Telnet ? Then it's ok to delete the # Don't delete the # behind 23/tcp You might also check, whether your user is telnet enabled using smitty user There should be a line containing User can LOGIN REMOTELY(rsh,tn,rlogin) This has to be set to "true". Regards Thomas
May 9, 2007 Thread starter #14 surfguy Technical User May 4, 2007 14 IT All, OK guys, it looks like i can telnet now. regards, RIccardo Upvote 0 Downvote