mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 17:08:25 +02:00
feat: add private key to ssh-agent when using ssh
This commit is contained in:
@@ -21,6 +21,9 @@
|
|||||||
# format in details:
|
# format in details:
|
||||||
# https://www.ssh.com/academy/ssh/config
|
# https://www.ssh.com/academy/ssh/config
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
# a private key that is used during authentication will be added to ssh-agent if it is running
|
||||||
|
AddKeysToAgent yes
|
||||||
|
|
||||||
Host 192.168.*
|
Host 192.168.*
|
||||||
# allow to securely use local SSH agent to authenticate on the remote machine.
|
# 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`
|
# It has the same effect as adding cli option `ssh -A user@host`
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
# format in details:
|
# format in details:
|
||||||
# https://www.ssh.com/academy/ssh/config
|
# https://www.ssh.com/academy/ssh/config
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
# a private key that is used during authentication will be added to ssh-agent if it is running
|
||||||
|
AddKeysToAgent yes
|
||||||
|
|
||||||
Host 192.168.*
|
Host 192.168.*
|
||||||
# allow to securely use local SSH agent to authenticate on the remote machine.
|
# 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`
|
# It has the same effect as adding cli option `ssh -A user@host`
|
||||||
|
|||||||
Reference in New Issue
Block a user