1836065 Members
2927 Online
110089 Solutions
New Discussion

disable telnet

 
SOLVED
Go to solution
Angela Swyers_1
Frequent Advisor

disable telnet

I want to force my users to use Secure Shell to log into my server. How do I do this? Do I just stop the telnet daemon, or is there a better way?
8 REPLIES 8
Wilfred Chau_1
Respected Contributor

Re: disable telnet

yeah. Disable that in inetd.conf
Joseph Loo
Honored Contributor
Solution

Re: disable telnet

hi,

stopping telnet daemon is an option. u may do in /etc/inetd.conf:

# vi /etc/inetd.conf
-> comment off telnet line
# inetd -c

Also, u may like to do something about the assignment of points, 10 out of 156 shows a lack of appreciation to those who have help answer your queries.

regards.
what you do not see does not mean you should not believe
Hoang Chi Cong_1
Honored Contributor

Re: disable telnet

Hi

Just rem this line in the /etc/inetd.conf:

telnet stream tcp nowait root /usr/lbin/telnetd telnetd

Then do:
#inetd -c

Regard,
Hoang Chi Cong
Looking for a special chance.......
lawrenzo
Trusted Contributor

Re: disable telnet

there is a file /etc/services

if you vi this and # out any service you do not wish to run ie telnet is here and other services.

HTH
hello
lawrenzo
Trusted Contributor

Re: disable telnet

hate to be the points police but you may have got a better response if you did assign points.

Thanks
hello
Nguyen Anh Tien
Honored Contributor

Re: disable telnet

pls do these step:
#vi /etc/services
#rem telnet service
#telnet 23/tcp # Virtual Terminal Protocol
SAVE AND EXIT BY ISSUE:wq!
Reconfig inetd service
#inetd -c
That all
HTH
tienna
HP is simple
Muthukumar_5
Honored Contributor

Re: disable telnet

We can do by commenting telnetd in /etc/inetd.conf file. And also comment telnet service in /etc/service file. Then restart inetd daemon as inetd -c.

You can also use /etc/profile file as,

ps|grep -q 'telnet'
if [[ $? -eq 0 ]]
then
echo "Plz use secure shell for usage"
sleep 2
exit 1
fi

It will also work.

HTH.
Easy to suggest when don't know about the problem!
Mark Nieuwboer
Esteemed Contributor

Re: disable telnet

You can also change telnet allow in telnet deny in the /var/adm/inetd.sec.

grtz. Mark