home · contact · privacy
Improve websites server setup.
[config] / bookworm / setup_scripts / init_user_login.sh
index aa8a03f6b090c076f6bbec57fda41bfeec004174..820b5abf60ca191d02ed8f1457e7043a26dd1681 100755 (executable)
@@ -18,6 +18,9 @@ local_path_sshd_config="${linkable_files_dir}${system_path_sshd_config}"
 expect_n_args 1 "(server)" "$@"
 server="$1"
 
+# If we already knew that host …
+ssh-keygen -f "/home/plom/.ssh/known_hosts" -R "${server}"
+
 # So we're only asked once …
 eval $(ssh-agent)
 ssh-add