LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disable telnet command from Linux client end ! (https://www.linuxquestions.org/questions/linux-newbie-8/disable-telnet-command-from-linux-client-end-892848/)

shipon_97 07-20-2011 11:56 PM

Disable telnet command from Linux client end !
 
Dear Friends ,

From Linux client end I can easily telnet to a remote Linux server easily , Like :


[root@apps1 ~]# telnet 192.168.1.14
Trying 192.168.1.14...
Connected to 192.168.1.14 (192.168.1.14).
Escape character is '^]'.

catalog.aibl.com (Linux release 2.6.18-8.el5 #1 SMP Tue Jun 5 23:25:19 EDT 2007) (1)

login:


But I want to disable the "telnet" command from the client end , so that I cannot telnet to a remote linux server from the Linux client end .

Waiting for kind reply ... ..

chrism01 07-21-2011 12:26 AM

Just remove the telnet client SW

shipon_97 07-21-2011 01:02 AM

Thx for kind reply ..

Would u plz tell me how to remove the telnet client software ...., I remove the telnet package from the client end , but still it works ..

See the below output plz :

>[root@apps2 ~]# rpm -q telnet
telnet-0.17-31.EL4.5
[root@apps2 ~]# rpm -e --nodeps telnet
[root@apps2 ~]# rpm -q telnet
package telnet is not installed
[root@apps2 ~]# telnet 192.168.1.14
Trying 192.168.1.14...
Connected to 192.168.1.14 (192.168.1.14).
Escape character is '^]'.

test.com (Linux release 2.6.18-8.el5 #1 SMP Tue Jun 5 23:25:19 EDT 2007) (1)

login:

Oliv' 07-21-2011 04:23 AM

Hello,

Well you could try a command like:
Code:

rpm -q --whatprovides telnet
to check if another package provides telnet binary.
Also be aware that some tools like netcat easily allows you to connect to a telnet server.

Kind regards,

Oliv'

Wim Sturkenboom 07-21-2011 10:04 AM

Why do you want to do that :confused:

TobiSGD 07-21-2011 10:23 AM

Wouldn't it be the better approach to remove telnet from the server, since it is deprecated and insecure?

chrism01 07-21-2011 07:26 PM

That would be my preference; I was giving the OP the benefit of the doubt there... should have asked anyway .

A related article of why (& how) not to use rsh/telnet etc http://www.informit.com/articles/art...p=169465&rll=1

Wim Sturkenboom 07-23-2011 12:34 AM

Quote:

Originally Posted by TobiSGD (Post 4421332)
Wouldn't it be the better approach to remove telnet from the server, since it is deprecated and insecure?

It's why I asked. Still waiting for the reply ;)


All times are GMT -5. The time now is 05:40 PM.