Skip to content

Commit 55b5fb2

Browse files
author
Till Brehm
committed
Merge branch '6697-missing-newline' into 'develop'
Add final newline to the autorized_keys file, #6697 See merge request ispconfig/ispconfig3!1892
2 parents 75fac24 + 9b368ee commit 55b5fb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/plugins-available/shelluser_base_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ private function _setup_ssh_rsa() {
487487
$new_final_keys_arr[$key] = trim($val);
488488
}
489489
}
490-
$final_keys = implode("\n", array_flip(array_flip($new_final_keys_arr)));
490+
$final_keys = implode("\n", array_flip(array_flip($new_final_keys_arr))) . "\n";
491491

492492
// add the user's key
493493
$app->system->file_put_contents($sshkeys, $final_keys);

server/plugins-available/shelluser_jailkit_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ private function _setup_ssh_rsa() {
542542
$new_final_keys_arr[$key] = trim($val);
543543
}
544544
}
545-
$final_keys = implode("\n", array_flip(array_flip($new_final_keys_arr)));
545+
$final_keys = implode("\n", array_flip(array_flip($new_final_keys_arr))) . "\n";
546546

547547
// add the user's key
548548
file_put_contents($sshkeys, $final_keys);

0 commit comments

Comments
 (0)