Skip to content

Generates SSH host keys and formats them for usage in a cloud-init config file

Notifications You must be signed in to change notification settings

JJC1138/generate-cloud-init-ssh-host-keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

generate-cloud-init-ssh-host-keys

This tool generates SSH host keys and outputs them in a format suitable for adding to a cloud-init config file.

You can use the companion tool ssh-import-known-hosts-cloud-init to then add the generated public keys to your ~/.ssh/known_hosts file. This facilitates connecting to a cloud-init-configured instance securely with SSH without having to manually verify the host's keys.

Usage

Simply call the program and the keys are output in cloud-init compatible format that can be appended to a config file:

generate-cloud-init-ssh-host-keys >>my-cloud-init.yaml

SSH host keys are generated for the ecdsa, ed25519, and rsa key types.

About

Generates SSH host keys and formats them for usage in a cloud-init config file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages