Reputation: 25962
I have enabled Google Authenticator on my SSH sever to use their two factor authentication method.
I am trying to run an SSH job from Jenkins but cannot configure it to use the 2FA.
Does anyone know a mod that allows this or a way around it while still keeping 2FA or other additional security on the SSH server.
Thank you
Upvotes: 1
Views: 3476
Reputation: 25956
The point of 2 factor authentication is that both factors are not saved in the same place. Storing both of them (password, token) is against the philosophy of the 2FA.
Set up a new user without 2FA and set up public key authentication. Do not try to misuse things and do complicated stuff without any gain, when you can do it simple.
Upvotes: 2
Reputation: 14762
I'm not aware of any plugin that can handle this and I'm not sure whether there will be one since two-factor authentication has been designed to be used by human users. That contradicts to the idea of an automated CI server.
The security PKI supplies isn't enough for you?
Upvotes: 1