From 20230552f7b6e4c5c602d7455c1b979855abc1bc Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Tue, 7 Jan 2025 17:23:36 +0900 Subject: [PATCH] Make ssh known_hosts loads local entries Preparation part of GH-802 --- home-manager/ssh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/ssh.nix b/home-manager/ssh.nix index ed35d327..49f234b3 100644 --- a/home-manager/ssh.nix +++ b/home-manager/ssh.nix @@ -48,8 +48,8 @@ in # https://groups.google.com/g/opensshunixdev/c/e5-kTKpxcaI/m/bdVNyL4BBAAJ hashKnownHosts = false; - # TODO: Generate the file instead of readonly symlink to realize local specific list - userKnownHostsFile = "${../config/ssh/known_hosts}"; + # It accepts multiple files separated by whitespace. See https://man.openbsd.org/ssh_config#UserKnownHostsFile for detail + userKnownHostsFile = "${../config/ssh/known_hosts} ${sshDir}/known_hosts.local"; # unit: seconds serverAliveInterval = 60;