Operating System - HP-UX
1834095 Members
2158 Online
110063 Solutions
New Discussion

Re: /etc/securetty does not work with ssh installed ( port 22 ) ???

 
SOLVED
Go to solution
Juan Manuel López
Valued Contributor

/etc/securetty does not work with ssh installed ( port 22 ) ???

Hi all.
I have got several machines HP UX with 11.0 O.S., trusted system activated, and hp ssh installed. Now telnet is on port 22.
I would like to lock root login, just on console.
I had created the /etc/securetty file with console word on it.
So, I can login as root without problems...What I have done wrong ?

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
5 REPLIES 5
Ted Ellis_2
Honored Contributor

Re: /etc/securetty does not work with ssh installed ( port 22 ) ???

any chance you are using tcp_wrappers with ssh?

Tony Contratto
Respected Contributor
Solution

Re: /etc/securetty does not work with ssh installed ( port 22 ) ???

In the sshd_config file change "PermitRootLogin yes" to "PermitRootLogin no"

Tony
got root?
Juan Manuel López
Valued Contributor

Re: /etc/securetty does not work with ssh installed ( port 22 ) ???

The ssh software I am ussing is :
T1471AA A.03.10.001 HP-UX Secure Shell

What??s tcp_wrappers ?
Is a tcp parameter, isn??t it ?

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
Tom Maloy
Respected Contributor

Re: /etc/securetty does not work with ssh installed ( port 22 ) ???

tcp_wrappers is a package that you can install to "wrap" around other daemons, adding a level of security. After installation, you make changes to entries in /etc/inetd.conf. For example:

ftp stream tcp nowait root /usr/lbin/tcpd ftpd -l -a

In this case, tcpd is started first. Then, after it is satisfied that this is a legitimate request, it launches ftpd.

Tom
Carpe diem!
Juan Manuel López
Valued Contributor

Re: /etc/securetty does not work with ssh installed ( port 22 ) ???

Now it works fine.
Thanks.

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.