Commit Graph

2 Commits (0a0a47c2ba901b6f860a5c58a99b745f44301f90)

Author SHA1 Message Date
Anders F Björklund 7822a4e36e Add option to add the ssh-host key to known_hosts
This matches the ssh-add command for identity keys,
it will add the host key to the ssh known_hosts file.

If a ssh key for the host already exists in the file,
it will not be added again so can be run multiple times.
2020-12-12 18:54:33 +01:00
Anders F Björklund a387989c72 Add ssh-host command for getting the ssh host keys
This is similar to the existing minikube "ssh-key" command, but gets
the content of the host key instead of the path to the identity key.

The output of this command can be added to the ~/.ssh/known_hosts,
for strict host key authentication. For instance when using Docker.
2020-12-12 18:54:33 +01:00