LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   sshd access by IP address OR certificate (https://www.linuxquestions.org/questions/linux-networking-3/sshd-access-by-ip-address-or-certificate-835000/)

bagpussnz 09-28-2010 02:14 PM

sshd access by IP address OR certificate
 
Hi,
I have a site in India that needs to be accessed by our offices round the world. I have added AllowUsers lines for the static IP's in those offices.

However, we also have a couple of people who travel and don't have static ip's.

Is it possible to enable both AllowUsers for the offices and have certificate access for the others?

Regards,
Ian Collins.

anomie 09-28-2010 02:22 PM

And by "certificate" you mean private key (as used by sshd(8)'s Pubkey Authentication)?

If so, check this thread and the sshd_config(5) Match directive.

Older versions of OpenSSH do not have Match, though. If that's the case for you, then share the OS / version you're using (along with your OpenSSH version).


All times are GMT -5. The time now is 01:15 PM.