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!

Enable Telnet on AIX 1

Status
Not open for further replies.

surfguy

Technical User
May 4, 2007
14
IT
HI All,

How can I enable telnet on my AIX server?

Regards,
Riccardo
 
once i set it, do i need to reboot the box?

regards,
Riccardo
 
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
 
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
 
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
 
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
 
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


 
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
 
Oh, and one more thing ...

Could there be a firewall somewhere in your network blocking Port 23 ?
 
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
 
yes, refresh -s inetd again.

also make user that the telnetd executable is still there...

ls -l /usr/sbin/telnetd


HTH,

p5wizard
 
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
 
All,

OK guys, it looks like i can telnet now.

regards,
RIccardo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top