SSH pubkey or password based on user group



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

Thanks
Nikos
.



Relevant Pages

  • Re: Restricting ssh access to selected hosts
    ... Then copy the public key to the target box with: ... >> You can make the ssh server key-only, ... > want to login as "userB" on the server. ...
    (comp.os.linux.security)
  • Re: SSH with Public Key Authentication (Was: Re: Attention: Giorgos Keramidas (Was: CVS Import Permi
    ... and got stuck setting up the public key login. ... I spent a few hours yesterday trying to get SSH going again. ... Log in using your private key from the server (ie. login to the ...
    (freebsd-questions)
  • Re: Finer grain control of SSH access
    ... > for our server that only access from my domain is allowed. ... there are certain cases where we want to allow public-key ... > login, eg. for automated backup, running parallel jobs in beowulf cluster. ... say that public key can only be used to login if it's a restricted key with ...
    (RedHat)
  • Re: SSH Blocking
    ... > disable root login to ssh and disable password based logins. ... I need to get the public key up ... ssh to the pre-authorized machine; ... scp the new machine's public key to the server from the ...
    (Debian-User)
  • Re: SSH Blocking
    ... >> disable root login to ssh and disable password based logins. ... I need to get the public key up ... You generate one public and private key pair. ...
    (Debian-User)