feat: add private key to ssh-agent when using ssh

This commit is contained in:
Ryan Yin
2023-07-25 13:09:50 +08:00
parent 6ae4d4ba80
commit 6e825eef7f
2 changed files with 6 additions and 0 deletions

View File

@@ -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`

View File

@@ -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`