Operating System - HP-UX
1825768 Members
3533 Online
109687 Solutions
New Discussion

SSH A.03.71.000 Lock Up Telnet

 
SOLVED
Go to solution
Jorge Mel
Occasional Advisor

SSH A.03.71.000 Lock Up Telnet

I have SSH running on my server. I am able to telnet the normal method and via the secure method. I have a SSH client on my workstation.
Can't seem to find in the documentation how to lock up server so we can only telnet the secure method (SSH).

Thanks,

George M.
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: SSH A.03.71.000 Lock Up Telnet

Just comment out the 'telnet' line in /etc/inetd.conf and then run 'inetd -c' to force inetd to re-read its configuration file. After that you will not be able to telnet.
Sundar_7
Honored Contributor

Re: SSH A.03.71.000 Lock Up Telnet

George,

telnet listens on port 23 and SSH on 22. You need to disable inetd from spawning telnetd.

vi /etc/inetd.conf
telnet
to
#telnet

comment out the line that begins with "telnet".Save inetd.conf and send HUP signal to inetd.

# inetd -c

Now you will only be able to SSH and cannot telnet to the system

- Sundar
Learn What to do ,How to do and more importantly When to do ?
Michael Tully
Honored Contributor

Re: SSH A.03.71.000 Lock Up Telnet

Edit /etc/inetd.conf file
COmment out the line that looks like this:

telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/issue

Save the file and then run this:

# inetd -c

(if your using ssh, you might also consider doing the same for ftp, same procedure)
Anyone for a Mutiny ?
Michael Selvesteen_2
Trusted Contributor

Re: SSH A.03.71.000 Lock Up Telnet

Hello George,

Here is a fine document on disabling some common services in HP-UX.

http://www.cites.uiuc.edu/wsg/resources/security/hpux.html

You can employ ssh port forwarding mechanism for securing telnet port too.

refer for more information
http://www.ssh.com/support/documentation/online/ssh/adminguide/32/Port_Forwarding.html

--
M