Saturday, April 28, 2018

SSH Allow Password For One User, Rest Only Allow Public Keys

Is it possible with ssh to allow passwords from a certain user, but deny using passwords for everybody else?




Basically I want to allow password auth for user justin but everybody else must use public keys.



PasswordAuthentication no


Seems to be global though, no way to specify by user.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...