NAS 5320 : authorized_keys file ?

Hi all,

Do you have any ideas on how we can add a SSH key in the authorized_keys (or known_hosts) on a NAS 5320 box ?

For maintenance purposes, no password is required while ssh a specific host to the NAS box.

Thanks in advance,

Quentin.

[268 byte] By [Quentin_LUXa] at [2007-11-27 11:03:18]
# 1

I don't know if the 5320 is different, but this is how I do it on my Sol9 boxes...

On source server, login to userid you want to be able to ssh from without a password

cd to /path/to/home/<userid>/.ssh

Generate a public key

ssh -keygen -t rsa (or other type if appropriate)

use all defaults (files will be named id_rsa & id_rsa.pub)

Copy public key (id_rsa.pub) to userid@destination-server that you want to ssh to without password

scp id_rsa.pub <user>@<server>:/path/to/home/.ssh/id_rsa.pub

Append the public key file to the end of the authorized_keys file. If the file does not already exist, simply copy the public key file to authorized_keys.

cat authorized_keys id_rsa.pub > new-authorized_keys

mv new-authorized_keys authorized_keys

WeberStateUniversitya at 2007-7-29 12:48:43 > top of Java-index,General,Sys Admin Best Practices...