Public Key Auth for SSH Backups
Posted: Fri Feb 12, 2016 4:58 pm
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.
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.