Skip to content

Instantly share code, notes, and snippets.

@mafredri
Last active February 23, 2020 13:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mafredri/98114f411767473ad0a23d53e3628b13 to your computer and use it in GitHub Desktop.
Save mafredri/98114f411767473ad0a23d53e3628b13 to your computer and use it in GitHub Desktop.
Add custom SSH keys to the Ubiquiti UniFi Controller
{
"system": {
"login": {
"user": {
"ubnt": {
"authentication": {
"public-keys": {
"user@hostname": {
"key": "AAAA...B",
"type": "ssh-rsa"
}
}
}
}
}
}
}
}
config.system_cfg.1=sshd.auth.key.1.status=enabled
config.system_cfg.2=sshd.auth.key.1.value=AAAA...B
config.system_cfg.3=sshd.auth.key.1.type=ssh-rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment