EasyManua.ls Logo

Black Box LES1108A - Installing SSH Public Key Authentication (Linux)

Black Box LES1108A
237 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
_____________________________________________________________________
724-746-5500 | blackbox.com 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 \
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
If the Black Box device selected to be the server will only have one client device, then the
ssh-rsa
AAAB3NzaC1yc2Efg4+t
GHIAAA==name@client1
----BEGIN RSA
PRIVATE KEY----
MIEogIBAAKCAQEA
yIPGsNIS+a0LnPUMc
nujXXPGiOGyD3b79
KZg3UZ4MjZI525sCy
GYTByUdI
ssh-rsa
AAAAB3NzaC1ycEfg4+1
GHIZZ==name@client1
ssh-rsa AAAAB3NzaC1ycEfg4+IGHIAAA==name@client1
Master
Slave
Slave
authoriz ed_key
id_rsa
authoriz ed_key
id_rsa.pub

Table of Contents

Related product manuals