0

Inside gcp instance, there is missing pam.d module. Also it has it's own wrapper over ssh, so you have to use glcoud tool's ssh to get into the instance. While it is easy to setup login lockout policy in AWS in the /etc/pam.d/password-auth, I have not found any documentation on how to do it in google. Should I just install the pam module and set the same settings as in AWS, and that way I can control after how many login attempts (key or password). All I want is to limit the amount of times users can try to login, regardless if it is password or key.

  • How about 'MaxAuthTries 1000' in sshd_config? – Danila Ladner Mar 23 '18 at 18:55
1

Sorry, must have been very late, I looked in the wrong directory. Nothing to do with google, it depends on what linux you are using in Google, or any cloud provider. I was using Centos, and the /etc/pam.d/password-auth and system-auth files were there. I was looking in the wrong folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.