mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-07 15:43:54 +02:00
Disable features in the Match block vs main config
This commit is contained in:
parent
1dcfe18055
commit
2fcc3600fd
1 changed files with 3 additions and 10 deletions
|
@ -24,7 +24,6 @@ PubkeyAuthentication yes
|
||||||
AcceptEnv LANG LC_*
|
AcceptEnv LANG LC_*
|
||||||
|
|
||||||
# Turn off a lot of features
|
# Turn off a lot of features
|
||||||
AllowAgentForwarding no
|
|
||||||
IgnoreRhosts yes
|
IgnoreRhosts yes
|
||||||
RhostsRSAAuthentication no
|
RhostsRSAAuthentication no
|
||||||
RSAAuthentication no
|
RSAAuthentication no
|
||||||
|
@ -33,7 +32,6 @@ PermitEmptyPasswords no
|
||||||
ChallengeResponseAuthentication no
|
ChallengeResponseAuthentication no
|
||||||
PasswordAuthentication no
|
PasswordAuthentication no
|
||||||
UseDNS no
|
UseDNS no
|
||||||
X11Forwarding no
|
|
||||||
|
|
||||||
# Do not enable sftp
|
# Do not enable sftp
|
||||||
# If you DO enable it, use this line to log which files sftp users read/write
|
# If you DO enable it, use this line to log which files sftp users read/write
|
||||||
|
@ -51,21 +49,16 @@ HostKey /etc/ssh/ssh_host_ed25519_key
|
||||||
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256
|
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256
|
||||||
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com
|
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com
|
||||||
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com
|
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com
|
||||||
|
|
||||||
###
|
|
||||||
|
|
||||||
# TODO: I haven't seen anyone review these yet
|
# TODO: I haven't seen anyone review these yet
|
||||||
# HostKeyAlgorithms ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
|
# HostKeyAlgorithms ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
|
||||||
|
|
||||||
# TODO: I haven't seen anyone review these yet
|
# TODO: I haven't seen anyone review these yet
|
||||||
# PubkeyAcceptedKeyTypes ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
|
# PubkeyAcceptedKeyTypes ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
|
||||||
|
|
||||||
# TODO: I think we want to enable tunnels but disable stream local fowarding?
|
|
||||||
# PermitTunnel yes
|
|
||||||
# AllowStreamLocalForwarding no
|
|
||||||
|
|
||||||
{% if ssh_tunneling_enabled is defined and ssh_tunneling_enabled == "Y" %}
|
{% if ssh_tunneling_enabled is defined and ssh_tunneling_enabled == "Y" %}
|
||||||
Match Group algo
|
Match Group algo
|
||||||
AllowTcpForwarding remote
|
AllowTcpForwarding remote
|
||||||
|
AllowAgentForwarding no
|
||||||
AllowStreamLocalForwarding no
|
AllowStreamLocalForwarding no
|
||||||
|
PermitTunnel no
|
||||||
|
X11Forwarding no
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue