_____________________________________________________________________
724-746-5500 | b lackb o x.co m
Page 206
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 \
[email protected]:/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
If the Black Box device selected to be the server will only have one client device, then the
ssh-rsa
AAAB3NzaC1t
GHIAAA==name@client1
----BEGIN RSA
PRIVATE KEY----
MIEogIBAAKCAQEA
ya0LnPUMc
nujXXPGiOGyD3b79
KZg3UZ4MjZI525sCy
GYTByUdI
ssh-rsa
AAAAB3NzaC1
GHIZZ==name@client1
ssh-rsa AAAAB3NzaCIGHIAAA==name@client1
Master
Slave
Slave
authorized_key
id_rsa
authorized_key
id_rsa.pub