Skip to content

Instantly share code, notes, and snippets.

@aikar
Created October 24, 2017 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aikar/c4abb12f852e36afac0e9a28cc4cd2a3 to your computer and use it in GitHub Desktop.
Save aikar/c4abb12f852e36afac0e9a28cc4cd2a3 to your computer and use it in GitHub Desktop.
myhost_known_hosts_root:
ssh_known_hosts.present:
- name: myhost
- enc: rsa
- port: {{ pillar['ssh_port'] }}
- hash_known_hosts: False
- fingerprint: 6SW8DmQjli..........rTzSdcLTVsTsF1U
- fingerprint_hash_type: sha256
- user: root
@aikar
Copy link
Author

aikar commented Oct 24, 2017

ssh-keyscan myhost | ssh-keygen -lf -
2048 SHA256:6SW8DmQjli...........rTzSdcLTVsTsF1U [myhost]:port (RSA)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment