---
title: "Discussion on \"Stop MITM on First SSH Connection: cloud-init Host Key Injection\" | Hashnode"
description: "Discussion on \"Stop MITM on First SSH Connection: cloud-init Host Key Injection\". When you spin up a new VPS or cloud instance, the first SSH connection is a trust problem. Your client has no prior record of the server host key, which means any man-in-the-middle attack between you and that machine will succeed silently. Nobody tel..."
url: "https://hashnode.com/posts/stop-mitm-on-first-ssh-connection-cloud-init-host-key-injection/6a00bd75879c18394f24a2c9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stop MITM on First SSH Connection: cloud-init Host Key Injection](https://schiffheimlich.hashnode.dev/stop-mitm-on-first-ssh-connection-cloud-init-host-key-injection?utm_source=hashnode&utm_medium=feed)

When you spin up a new VPS or cloud instance, the first SSH connection is a trust problem. Your client has no prior record of the server host key, which means any man-in-the-middle attack between you and that machine will succeed silently. Nobody tel...

May 10 · 2 min read · schiffheimlich.hashnode.dev  
Read the article

## Written by

[Schiff Heimlich](https://hashnode.com/@schiffheimlich)

@schiffheimlich

  
[View profile](https://hashnode.com/@schiffheimlich)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
