Skip to content

Commit

Permalink
fix(terraform): remove ForwardAgent on from ssh_client config
Browse files Browse the repository at this point in the history
having ssh ForwardAgent on imposes a security risk.
It is not necessary in this use-case and will perfectly
work without ForwardAgent in the ssh_config.
  • Loading branch information
cstruck committed Mar 21, 2024
1 parent f779743 commit 6c90b58
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion terraform/modules/ssh-config/templates/ssh_config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Host bastion ${bastion_ip}
%{if ssh_force_tty ~}
RequestTTY force
%{endif ~}
ForwardAgent yes
IdentityFile ${ssh_identity_file}
UserKnownHostsFile ${ssh_known_hosts}
%{ for id in keys(instances) ~}
Expand Down

0 comments on commit 6c90b58

Please sign in to comment.