mitchellh / nixos-config

My NixOS configurations.
https://twitter.com/mitchellh/status/1346136404682625024
MIT License
1.93k stars 191 forks source link

Can't ssh into instance during bootstrap #3

Closed klivan closed 2 years ago

klivan commented 2 years ago

There are a few issues.

  1. Since after make vm/bootstrap0 we are rebooting an instance, ssh key is getting regenerated. So when we run make vm/bootstrap I'm getting an error ED25519 host key for 172.16.X.X has changed and you have requested strict checking.
  2. If you have more than 5 SSH keys inside your ~/.ssh/ directory, by default ssh client will try offering those keys to login into an instance. Also, by default, after 5 unsuccessful logins, ssh will fail, so you won't be asked for a password for the root user.
mitchellh commented 2 years ago

Yes for bootstrap0 you're expected to SSH with a password of "root". We don't use keys yet at that stage.

Your fix for 2 looks good!