adding switch for ForwardAgent in ssh_config (#818)

* Update openssh.conf.j2

add switch for FowardAgent

* Update openssh.conf.j2

fix typo

* Update openssh.conf.j2

change ssh_ForwardAgent to ssh_forward_agent

* Update argument_specs.yml

adding context for ssh_forward_agent
This commit is contained in:
Shizzlebix authored and GitHub committed 2024-11-11 19:52:38 +01:00
1 parent 96d318eaf4
commit cb85a99e22
2 files changed
+6 -1

No files matched your search

@@ -365,3 +365,6 @@ argument_specs:
default: sandbox default: sandbox
description: Specifies whether sshd separates privileges by creating an unprivileged description: Specifies whether sshd separates privileges by creating an unprivileged
child process to deal with incoming network traffic. child process to deal with incoming network traffic.
ssh_forward_agent:
default: 'no'
description: Enables the ssh forward agent for the Cli if set to 'yes'
@@ -90,7 +90,9 @@ StrictHostKeyChecking ask
{% endif %} {% endif %}
# Disable agent forwarding, since local agent could be accessed through forwarded connection. # Disable agent forwarding, since local agent could be accessed through forwarded connection.
ForwardAgent no
ForwardAgent {{ ((ssh_forward_agent) if ssh_forward_agent is defined else 'no')}}
# Disable X11 forwarding, since local X11 display could be accessed through forwarded connection. # Disable X11 forwarding, since local X11 display could be accessed through forwarded connection.
ForwardX11 no ForwardX11 no