Skip to content

Commit

Permalink
Disable ForwardAgent for all not specific host
Browse files Browse the repository at this point in the history
Using ForwardAgent within a specific host is more secure than
activating it globally. It is recommended that you always apply agent
forwarding only to servers you trust to minimize security risks.
  • Loading branch information
xorcare committed Sep 8, 2024
1 parent 4d78b3c commit 012714c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions home/.ssh/config
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,12 @@ Host *
# repository, files that are used for personal purposes and files that are used
# for work.
Include config.d/*.conf

# Specifies whether the connection to the authentication agent will be
# forwarded to the remote machine.
#
# This is turned off here, for increased security.
# If need to use ForwardAgent, enable it for each host separately.
#
# Default is "no"
ForwardAgent no

0 comments on commit 012714c

Please sign in to comment.