Is there a way of getting Google Authenticator to be required only when using certain users or accessing SSH server by certain ports? I only want to provide a challenge code when accessing SSH from outside of LAN.
Many thanks.
I
Is there a way of getting Google Authenticator to be required only when using certain users or accessing SSH server by certain ports? I only want to provide a challenge code when accessing SSH from outside of LAN.
Many thanks.
I
1998 Compaq Deskpro | Pentium II 350 Mhz CPU | 256 Mb RAM | 6.1Gb 33Mhz ATA Hard Drive | No sound card
The answer is, of course, to run two instances of SSH, pointing to different ports with only one enabling Google Authenticator. There is a useful howto here:
http://ubuntuforums.org/showthread.php?t=1497376
One point that seems obvious with hindsight but is not stated is that in Step 3a you also need to change sshd to sshd2.
1998 Compaq Deskpro | Pentium II 350 Mhz CPU | 256 Mb RAM | 6.1Gb 33Mhz ATA Hard Drive | No sound card
Bookmarks