diff --git a/home/darwin/core.nix b/home/darwin/core.nix index f11465b5..e9a47908 100644 --- a/home/darwin/core.nix +++ b/home/darwin/core.nix @@ -21,6 +21,9 @@ # format in details: # https://www.ssh.com/academy/ssh/config extraConfig = '' + # a private key that is used during authentication will be added to ssh-agent if it is running + AddKeysToAgent yes + Host 192.168.* # allow to securely use local SSH agent to authenticate on the remote machine. # It has the same effect as adding cli option `ssh -A user@host` diff --git a/home/linux/desktop/ssh.nix b/home/linux/desktop/ssh.nix index d285b072..cfea94c2 100644 --- a/home/linux/desktop/ssh.nix +++ b/home/linux/desktop/ssh.nix @@ -12,6 +12,9 @@ # format in details: # https://www.ssh.com/academy/ssh/config extraConfig = '' + # a private key that is used during authentication will be added to ssh-agent if it is running + AddKeysToAgent yes + Host 192.168.* # allow to securely use local SSH agent to authenticate on the remote machine. # It has the same effect as adding cli option `ssh -A user@host`