220
Chapter 15: Advanced Configuration
It is advisable to create a new directory to store your generated keys. It is also possible to name the files after the device they
will be used for. For example:
$ mkdir keys
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enterleinwhichtosavethekey(/home/user/.ssh/id_rsa): /home/user/keys/control_room
Enter passphrase(emptyfornopassphrase):
Enter same passphrase again:
Your identification has been saved in /home/user/keys/control_room
Your public key has been saved in /home/user/keys/control_room.pub.
The key fingerprint is:
28:aa:29:38:ba:40:f4:11:5e:3f:d4:fa:e5:36:14:d6 user@server
$
Youmustensurethereisnopasswordassociatedwiththekeys.Ifthereisapassword,thentheConsoleServerdeviceswill
have no way to supply it as runtime.
Full documentation for the ssh-keygen command can be found at http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-keygen
15.6.3 Installing the SSH Public/Private Keys (Clustering)
ForConsoleServersthekeyscanbesimplyuploadedthroughthewebinterface,ontheSystem: Administration page. This
enablesyoutouploadstoredRSAorDSAPublicKeypairstotheMasterandapplytheAuthorizedkeytotheslaveandis
describedinChapter4.OncecompleteyouthenproceedtoFingerprintingasdescribedbelow.
15.6.4 Installing SSH Public Key Authentication (Linux)
Alternately the public key can be installed on the unit remotely from the linux host with the scp utility as follows.
AssumingtheuserontheManagementConsoleiscalled"fred";theIPaddressoftheConsoleServeris192.168.0.1
(default);andthepublickeyisonthe linux/unix computer in ~/.ssh/id_dsa.pub. Execute the following command on the linux/
unix computer:
scp ~/.ssh/id_dsa.pub \
root@192.168.0.1:/etc/config/users/fred/.ssh/authorized_keys
Theauthorized_keysleontheConsoleServerneedstobeownedby"fred",sologintotheManagementConsoleasroot and
type:
chown fred /etc/config/users/fred/.ssh/authorized_keys