Re: SSH pubkey or password based on user group
- From: Nikos Nikoleris <nikos@xxxxxxxxxxx>
- Date: Sat, 27 Oct 2007 17:24:38 +0300
Nico wrote:
On 26 Oct, 16:25, Nikos Nikoleris <ni...@xxxxxxxxxxx> wrote:
Hi,
What I was trying to do is not to allow users that are in root group to
login using ssh in our server without having their public key while
every other user can choose whether they will login using their password
or their public key.
I was searching through pam modules without success if there was a way
of doing this through pam but I couldn't find any module that will have
my job done. Does anyone have any clue if there is a way of doing this
Would it work simply to leave a cron job in place to scream bloody
murder if anyone puts root keys on the server? Or to allow root logins
only on another port, with your sshd set something like this:
On port 22:
Port 22
PermitRootLogin no
And on port 2022
Port 2022
PubkeyAuthentication no
AllowGroups root
Does that make sense? Manipulating a single SSH daemon to do what you
ask is going a bit far.
Maybe this can do the job but I was hoping that one instance of the ssh
daemon was enough. What I thought at first was to change the way users
authenticate so maybe use some other pam module. Those that I have
already found - pam_ssh.so, pam_ssh_agent.so pam_if.so maybe a
combination of them - can do something similar but not what I want
exactly. I was hoping that there is a way to use a combination of these
modules to do what I ask. Am I wrong isn't pubkey authentication
something that pam handles just as it is with passwords? If this is true
then there can be a way of implementing or using some modules that does
that.
Thanks
Nikos
.
- References:
- SSH pubkey or password based on user group
- From: Nikos Nikoleris
- Re: SSH pubkey or password based on user group
- From: Nico
- SSH pubkey or password based on user group
- Prev by Date: Re: SSH pubkey or password based on user group
- Next by Date: Re: SSH pubkey or password based on user group
- Previous by thread: Re: SSH pubkey or password based on user group
- Next by thread: Re: SSH pubkey or password based on user group
- Index(es):
Relevant Pages
|