-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not running pam_exec from sshd when client runs ssh -i key.pem
#53
Comments
Oh curious. The problem seemed to be caused how I invoked the client: with
Without, falling back to default key:
If I add both keys to my ssh agent it works. So "problem solved" for me, but I still find this curious. |
ssh -i key.pem
Thank you for reporting this. I'll have to look into this on a fresh install - it's possible that |
Thanks for this module - it is exactly what I want!
And I ran it on one instance and it worked.
Then I terminated that one and created a new one (same AMI - ubuntu 18.04 in eu-west-2) and it... didn't work :( Looking at
journalctl
I didn't see anypam_exec
lines.But if I change the sshd_config from
to
Then it does run the script (though as expected I can't log in as I have no password)
In myLog I see this:
For the hacked config I see
I'm a bit out of my depth in PAM here, I'm not sure how I managed to have it working before and changed nothing much I can point at and it's not working anymore :(
The text was updated successfully, but these errors were encountered: