Update SSH Configuration

This commit is contained in:
Benjamin Hays 2024-08-14 11:32:43 -04:00
parent ee23af3e6d
commit dbec838a71
Signed by: BenHays42
GPG Key ID: CE14B8B296ABEFB1
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@
path: "/home/bhays/.ssh/" path: "/home/bhays/.ssh/"
owner: bhays owner: bhays
group: bhays group: bhays
mode: "0600" mode: "0770"
state: directory state: directory
- name: Copy public key - name: Copy public key
ansible.builtin.copy: ansible.builtin.copy:

View File

@ -6,13 +6,15 @@ HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ecdsa_key
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256 KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,curve25519-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,sntrup761x25519-sha512@openssh.com
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
HostKeyAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256 HostKeyAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256
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
LogLevel VERBOSE LogLevel VERBOSE
AuthenticationMethods publickey
MaxAuthTries 5 MaxAuthTries 5
MaxSessions 8 MaxSessions 8