mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-05 22:54:01 +02:00
1. Disable SSH key deploying if installation on existing server
2. Move to the ed25519 algorithm 3. Delete unneeded option RSAAuthentication Fixes #272
This commit is contained in:
parent
e55ce03906
commit
95e0134f21
3 changed files with 3 additions and 6 deletions
|
@ -17,4 +17,4 @@
|
|||
user: "{{ ansible_ssh_user }}"
|
||||
state: present
|
||||
key: "{{ lookup('file', '{{ SSH_keys.public }}') }}"
|
||||
tags: [ 'always' ]
|
||||
tags: [ 'cloud' ]
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
---
|
||||
|
||||
- name: Generate the SSH private key
|
||||
local_action: shell echo -e 'n' | ssh-keygen -b 2048 -C {{ SSH_keys.comment }} -t rsa -f {{ SSH_keys.private }} -q -N ""
|
||||
local_action: shell echo -e 'n' | ssh-keygen -C {{ SSH_keys.comment }} -t ed25519 -f {{ SSH_keys.private }} -q -N ""
|
||||
args:
|
||||
creates: "{{ SSH_keys.private }}"
|
||||
|
||||
- name: Generate the SSH public key
|
||||
local_action: shell echo `ssh-keygen -y -f {{ SSH_keys.private }}` {{ SSH_keys.comment }} > {{ SSH_keys.public }}
|
||||
args:
|
||||
creates: "{{ SSH_keys.public }}"
|
||||
changed_when: false
|
||||
|
||||
- name: Change mode for the SSH private key
|
||||
local_action: file path={{ SSH_keys.private }} mode=0600
|
||||
|
|
|
@ -26,7 +26,6 @@ AcceptEnv LANG LC_*
|
|||
# Turn off a lot of features
|
||||
IgnoreRhosts yes
|
||||
RhostsRSAAuthentication no
|
||||
RSAAuthentication no
|
||||
HostbasedAuthentication no
|
||||
PermitEmptyPasswords no
|
||||
ChallengeResponseAuthentication no
|
||||
|
@ -53,4 +52,3 @@ MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@op
|
|||
# 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
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue