diff options
author | Rick Wright <rickw@google.com> | 2019-08-09 17:11:05 +0000 |
---|---|---|
committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2019-08-09 17:11:05 +0000 |
commit | 155847209e6a3ed5face91a133d8488a703f3f93 (patch) | |
tree | 7736a89809a0368b974f8c8afd20a034df6e5145 /tools/run-container | |
parent | 4dfed67d0e82970f8717d0b524c593962698ca4f (diff) | |
download | vyos-cloud-init-155847209e6a3ed5face91a133d8488a703f3f93.tar.gz vyos-cloud-init-155847209e6a3ed5face91a133d8488a703f3f93.zip |
Add support for publishing host keys to GCE guest attributes
This adds an empty publish_host_keys() method to the default datasource
that is called by cc_ssh.py. This feature can be controlled by the
'ssh_publish_hostkeys' config option. It is enabled by default but can
be disabled by setting 'enabled' to false. Also, a blacklist of key
types is supported.
In addition, this change implements ssh_publish_hostkeys() for the GCE
datasource, attempting to write the hostkeys to the instance's guest
attributes. Using these hostkeys for ssh connections is currently
supported by the alpha version of Google's 'gcloud' command-line tool.
(On Google Compute Engine, this feature will be enabled by setting the
'enable-guest-attributes' metadata key to 'true' for the
project/instance that you would like to use this feature for. When
connecting to the instance for the first time using 'gcloud compute ssh'
the hostkeys will be read from the guest attributes for the instance and
written to the user's local known_hosts file for Google Compute Engine
instances.)
Diffstat (limited to 'tools/run-container')
0 files changed, 0 insertions, 0 deletions