Hi,
I want to allow an automated task to synchronise directories between servers using net/unison which uses ssh to synchronise remote directories. To do this in a secure manner I was planning on creating a user to run the task.
However, I have configured ssh to require multi-factor authentication using pam-google-authenticator, and ssh keys. I there a way I can exclude this user from the multi-factor auth requirements?
I have configured ssh_config as follows:
And I have configure /etc/pam.d/sshd as follows:
I want to allow an automated task to synchronise directories between servers using net/unison which uses ssh to synchronise remote directories. To do this in a secure manner I was planning on creating a user to run the task.
However, I have configured ssh to require multi-factor authentication using pam-google-authenticator, and ssh keys. I there a way I can exclude this user from the multi-factor auth requirements?
I have configured ssh_config as follows:
Code:
PasswordAuthentication yes
PermitEmptyPasswords no
PubkeyAuthentication yes
PermitRootLogin no
AllowUser khaine_admin
Match User khaine_admin
AuthenticationMethods publickey,keyboard-interactive
And I have configure /etc/pam.d/sshd as follows:
Code:
auth required pam_unix.so no_warn try_first_pass
auth required /usr/local/lib/pam_google_authenticator.so