Creating OpenSSH key as nagios user
Posted: Mon Jun 24, 2013 10:18 am
Ok, I need to create an openSSH key as the user that operates nagios. Is this the user nagios and if so, I don't think I ever had to set a password for this user, hence I don't know how I can login with this user in order to generate a public key. I tried using "runuser nagios -c ssh-keygen" logged in as root, but I get the following errors:
open eternuskey failed: Permission denied.
Saving the key failed: eternuskey.
This is the procedure I'm following to get the Fujitsu Eternus DX plugin working:
Create an SSH client public key and a secret key as a pair in the Nagios server. These keys can be created by
using the "ssh-keygen" command of OpenSSH or by another method.
Note that a pair of keys (the SSH client public key and the secret key) must be created and registered in the
Nagios server by using the user account that operates Nagios.
Refer to the manuals that can be viewed at the following URL for details on how to create keys with the "sshkeygen"
command for Open SSH.
http://www.openssh.org/manual.html
The ETERNUS Disk storage system supports the public key types that are listed in the table below.
Figure 2.2 Public key types
Public key types Encryption level of public keys
OpenSSH style RSA for SSH v1 Up to 4096 bits.
IETF style DSA for SSH v2
IETF style RSA for SSH v2
open eternuskey failed: Permission denied.
Saving the key failed: eternuskey.
This is the procedure I'm following to get the Fujitsu Eternus DX plugin working:
Create an SSH client public key and a secret key as a pair in the Nagios server. These keys can be created by
using the "ssh-keygen" command of OpenSSH or by another method.
Note that a pair of keys (the SSH client public key and the secret key) must be created and registered in the
Nagios server by using the user account that operates Nagios.
Refer to the manuals that can be viewed at the following URL for details on how to create keys with the "sshkeygen"
command for Open SSH.
http://www.openssh.org/manual.html
The ETERNUS Disk storage system supports the public key types that are listed in the table below.
Figure 2.2 Public key types
Public key types Encryption level of public keys
OpenSSH style RSA for SSH v1 Up to 4096 bits.
IETF style DSA for SSH v2
IETF style RSA for SSH v2