Skip to main content

Posts

Showing posts with the label Ubiquiti

Howto enable SSH public key authentication on Ubiquiti AirOS v5.5.8 (e.g. Airgrid, NanoStation2)

About SSH Keys SSH keys provide a more secure way of logging into a Ubiquiti AirOS device with SSH than using a password alone. While a password can eventually be cracked with a brute force attack, SSH keys are nearly impossible to decipher by brute force alone. Generating a key pair provides you with two long string of characters: a public and a private key. You can place the public key on any server, and then unlock it by connecting to it with a client that already has the private key. When the two match up, the system unlocks without the need for a password. You can increase security even more by protecting the private key with a passphrase. Step One—Create the RSA Key Pair The first step is to create the key pair on the Aircontrol Server machine (OR it be your computer): ssh-keygen -t rsa