Black Box LES1216A-R2, LES1332A, LES1408A, LES144BA Installing SSH Public Key Authentication Linux

Models: LES1116A LES110BA LES1308A LES1348A LES144BA Value-Line and Advanced Console Servers LES114BA LES1432A LES1332A LES1316A LES1416A LES1208A-R2 LES1132A LES1216A-R2 LES1232A LES1248A-R2 LES1408A

1 286
Download 286 pages 6.23 Kb
Page 253
Image 253

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