Skip to content
Snippets Groups Projects
Commit 00e9d378 authored by skorpy's avatar skorpy :construction_worker:
Browse files

ssh init

parent 093f904a
Branches
No related tags found
No related merge requests found
# Github needs diffie-hellman-group-exchange-sha1 some of the time but not always.
Host github.com
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
Host *
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
PasswordAuthentication no
ChallengeResponseAuthentication no
Protocol 2
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key
PasswordAuthentication no
ChallengeResponseAuthentication no
PubkeyAuthentication yes
AllowGroups ssh-user
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-ripemd160-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,umac-128@openssh.com
openssh-server:
pkg.latest:
- pkgs:
- openssh-server
service.running:
- name: sshd
- enable: True
- reload: True
# - watch:
# - augeas: sshd_*
include:
- openssh.hardening
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment