SSH Authentication
Overview
Setup
#!/bin/sh
curl defguard.example.com/api/v1/ssh_authorized_keys?username="${1}"sudo chown root:root /usr/local/bin/get_ssh_keys.sh
sudo chmod 0755 /usr/local/bin/get_ssh_keys.sh#!/bin/sh
curl defguard.example.com/api/v1/ssh_authorized_keys?username="${1}"sudo chown root:root /usr/local/bin/get_ssh_keys.sh
sudo chmod 0755 /usr/local/bin/get_ssh_keys.shAuthorizedKeysCommand /usr/local/bin/get_ssh_keys.sh
AuthorizedKeysCommandUser nobody#!/bin/sh
curl defguard.example.com/api/v1/ssh_authorized_keys?group=admin&username="${1}"#!/bin/sh
test $# -ne 1 -o "${1}" != 'adminuser' && exit 1
curl defguard.example.com/api/v1/ssh_authorized_keys?group=admin