1834022 Members
2364 Online
110063 Solutions
New Discussion

Disabling Telnet

 
Bob Ferro
Regular Advisor

Disabling Telnet

I added an entry in /var/adm/inetd.sec in one server as follows:

telnet allow 166.20.244.127 spdtech

I am able to telnet to this server and no one else can. I added an entry in /var/adm/inetd.sec in another server as follows:

telnet allow 166.20.244.127 spdtest

I am not able to login in. What did I miss?

P.S. I have a static ip.
7 REPLIES 7
Hazem Mahmoud_3
Respected Contributor

Re: Disabling Telnet

First make sure you can access the server across the network (ping). Maybe the server is on a different subnet or something.
Also compare the files /etc/inetd.conf on both servers. You should have a telnet entry in there.

-Hazem
Steven E. Protter
Exalted Contributor

Re: Disabling Telnet

Attaching an example inetd.sec file that might help.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
sinhass
Regular Advisor

Re: Disabling Telnet

Pls run inetd -c and try again.

-sinhass
Michael Tully
Honored Contributor

Re: Disabling Telnet

telnet can only be disabled in two places:

/etc/inetd.conf (disables telnet completely)
/var/adm/inetd.sec (disables subnets and actual ip addresses)

After making changes to /var/adm/inetd.sec does not need to have an inetd -c run after. This is only for /etc/inetd.conf
Anyone for a Mutiny ?
Sanjiv Sharma_1
Honored Contributor

Re: Disabling Telnet

Hi Bob,

Please check this link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=261206
Everything is possible
Bharat Katkar
Honored Contributor

Re: Disabling Telnet

Login thr' console on another server and check following:

# telnet 127.0.0.1

This should give you a login prompt.
This will confirm whether telnet itself is working properly on your another server.

In case if it work, then you need to check inetd.sec file for any errors.

You need to know a lot to actually know how little you know
Bob Ferro
Regular Advisor

Re: Disabling Telnet

Thanks to everyone for all the help. I have one more problem. Some users need to telnet into the system via dialup. Some internal users need to telnet (no static ip for these guys). My question is there anyway to allow users other than using the ip address? Say by user name?