ryan4yin / nixos-and-flakes-book

:hammer_and_wrench: :heart: Want to know NixOS & Flakes in detail? Looking for a beginner-friendly tutorial? Then you've come to the right place! 想要学习使用 NixOS 与 Flakes 吗?在寻找一份新手友好的教程?那你可来对地方了!
https://nixos-and-flakes.thiscute.world
Creative Commons Attribution Share Alike 4.0 International
1.72k stars 86 forks source link

[Enhancement] Add troubleshooting subsection to `Remote Deployment` #110

Closed piyoki closed 4 months ago

piyoki commented 4 months ago

Proposal

Add an addtitional troubleshooting subsection in Remote Deploy followed by Deploy through nixos-rebuild. Also, include workarounds to SSH related issues that end-users might encounter.

Background

Recently, I've decided to give colmena a try. In general, everything works as expected. Yet, I do have a few complaints when it comes to troubleshooting.

An issue I recently found was that if a host's IP has been changed over time (VM environment), we are supposed to remove the host entry in $HOME/.ssh/known_hosts on the host machine (Laptop | Desktop). Otherwise, colmena will complain not be able to remote SSH connection denied.

Workaround

ssh-keygen -R <remote-machine-ip>