Seeding a Google Compute Engine instance with SSH HostKeys

The Objective

The Challenge

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Host Keys

Google Compute Machine Images

  • Copy a tar archive of host keys to the Packer builder instance
  • Move to the correct directory and set ownership and permissions.

The solution

--

--

--

loves systems, bikes, sociology, coffee, and the sound of music. VP of Infrastructure @Adwerx

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

AWS: THE STORAGE, BUCKET POLICY AND PRACTICES

Finding PII Data in Splunk Logs

How to Use Google Lighthouse Tool

How to Generate a Normal Map from an Image, the Quick and Dirty way.

Conda cheatsheet

Build a Caffeine Chatbot with Watson Assistant

Using RailsAdmin with Pundit

Animating GameObjects In Unity Timeline

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Josh Bielick

Josh Bielick

loves systems, bikes, sociology, coffee, and the sound of music. VP of Infrastructure @Adwerx

More from Medium

Airflow on Google Cloud Composer

Mocking Events in Pub/Sub Triggered Cloud Functions (GCP, Python)

Logo for google pub/sub and cloud functions

Google Cloud Alerting to Webex Teams using GCP Pub/Sub and Cloud Functions

Deploy Flask application on GCP Cloud Run