Page 1 of 1

Public Key Auth for SSH Backups

Posted: Fri Feb 12, 2016 4:58 pm
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.

Re: Public Key Auth for SSH Backups

Posted: Mon Feb 15, 2016 12:56 pm
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.