Public Key Auth for SSH Backups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
NathanS
Posts: 10
Joined: Wed Dec 23, 2015 4:50 pm

Public Key Auth for SSH Backups

Post by NathanS »

Is this feature intended to be implemented anytime soon?

from /html/includes/components/scheduledbackups/ajaxcalls.php:

147 // Try loggin in
148 if (!ssh2_auth_password($s, $ssh['username'], $ssh['password'])) {
149 print json_encode(array("error" => _("Could not authenticate.")));
150 exit();
151 }


And the pecl_ssh2 documentation:

bool ssh2_auth_pubkey_file ( resource $session , string $username , string $pubkeyfile , string $privkeyfile [, string $passphrase ] )

I tend not to customize things like this on my own due to complications that will arise down the road, especially after doing an upgrade.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Public Key Auth for SSH Backups

Post by rkennedy »

Currently, scheduled backups only supports SSH authentication. I do believe you've come up with a great feature request though, for it to use SSH keys rather then a user/pass.

With that said, I've filed a feature request for this, ID 7760.
Former Nagios Employee
Locked