mirror of
https://github.com/operasoftware/ssh-key-authority.git
synced 2026-01-06 12:50:17 -06:00
@@ -264,7 +264,7 @@ function sync_server($id, $only_username = null, $preview = false) {
|
||||
$attempts = array('keys-sync', 'root');
|
||||
foreach($attempts as $attempt) {
|
||||
try {
|
||||
$connection = ssh2_connect($hostname, 22);
|
||||
$connection = ssh2_connect($hostname, $server->port);
|
||||
} catch(ErrorException $e) {
|
||||
echo date('c')." {$hostname}: Failed to connect.\n";
|
||||
$server->sync_report('sync failure', 'SSH connection failed');
|
||||
|
||||
Reference in New Issue
Block a user