Commit b12e118e authored by nanahira's avatar nanahira

ubuntu 22 allow sshd

parent b1e43329
Pipeline #12008 failed with stage
in 1 minute and 50 seconds
...@@ -29,3 +29,13 @@ ...@@ -29,3 +29,13 @@
regexp: '^#?UseDNS (true|yes).*$' regexp: '^#?UseDNS (true|yes).*$'
line: 'UseDNS no' line: 'UseDNS no'
backrefs: true backrefs: true
- name: permit ssh-rsa
become: true
blockinfile:
path: /etc/ssh/ssh_config
block: |
HostKeyAlgorithms=ssh-rsa,ssh-rsa-cert-v01@openssh.com,ssh-xmss-cert-v01@openssh.com,ssh-xmss@openssh.com
KexAlgorithms=+sntrup761x25519-sha512@openssh.com
PubkeyAcceptedAlgorithms=+ssh-rsa,ssh-rsa-cert-v01@openssh.com,ssh-xmss-cert-v01@openssh.com,ssh-xmss@openssh.com
marker: '# {mark} MyCard Init block'
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 22
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment