04-12-2016 12:51 AM
I've have copied my authorized keys across to my Unifi APs and was wondering if there is anyway of disabling password logins on the unit. I don't mind if I have to do this locally on each unit providing it is persistent across reboots.
07-19-2016 02:53 AM - edited 07-19-2016 02:55 AM
Thanks. I used the one-liner below at the access point, though that doesn't survive an AP reboot:
$ cat ~/.ssh/id_rsa.pub | ssh email@example.com "mkdir ~/.ssh;cat - >> ~/.ssh/authorized_keys;chmod -R 600 ~/.ssh"
Any suggestion how to make this AP config stick?
07-19-2016 03:08 AM
How to make to make the AP config stick?
# cfgmtd -w -p /etc
With thanks to bzavala at https://community.ubnt.com/t5/UniFi-Wireless/clients-complain-about-dropping-from-connecting-to-unif...
07-19-2016 09:28 AM
10-05-2016 09:01 AM - edited 10-05-2016 09:09 AM
Well I think guys that /etc/dropbear/authorized_keys is the file to use in the first place; otherwise it won't stick even after running
cfgmtd -w -p /etc
So, you'd use something like
ssh firstname.lastname@example.org "tee -a /etc/dropbear/authorized_keys" < ~/.ssh/id_rsa.pub
to add your key.