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.

Assuming the user on the Management Console is called "fred"; the IP address of the console server is 192.168.0.1 (default); and the public key is on the 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

The authorized_keys file on the console server needs to be owned by "fred", so login to the Management Console as root and type:

chown fred /etc/config/users/fred/.ssh/authorized_keys

_____________________________________________________________________

724-746-5500 blackbox.com

Page 253

Page 253
Image 253
Black Box LES1216A-R2, LES1332A, LES1408A, LES144BA, LES1416A, LES1348A Installing SSH Public Key Authentication Linux