Comments (2)
It should work by default, but then the ssh-key-handling code did change recently. Comment out the reboot
from the script, run it as normal, then inspect /etc/nixos/configuration.nix
to see if the authorized_keys were handled properly.
from nixos-infect.
It does indeed handle this properly. It was my own fault. After reboot you simply have to clear the key that is already present in ~/.ssh/known_hosts so it adds it again, the correct one.
Closing this issue now. The code is doing this correctly.
from nixos-infect.
Related Issues (20)
- No ipv6 on Hetzner cloud HOT 2
- Infect with a prebuilt flake? HOT 2
- Lot of work to be done
- Fail to setup network on Network Presence HOT 1
- OCI Oracle7.9 used to work HOT 2
- can not boot new system HOT 2
- Build failure on aarch64 due to missing module vmw_pvscsi HOT 6
- Problem with isX86_64, missing parenthesis? HOT 1
- ubuntu22.04 on ESXI 7.0 failed mounting on `/mnt-root`
- Not working in Azure HOT 3
- No ssh keys installed if /root/.ssh/authorized_keys is an empty file HOT 3
- Hetzner Cloud - user data vs. curl nixos-infect HOT 2
- Reporting that the script works on Hetzner's new Ampere ARM cloud vps HOT 2
- Invalid networking.nix for IPv6-only machines HOT 2
- Reporting that it works with SSD Nodes on Ubuntu 22.04
- Report for GCE T2A Ampere arm64 aarch64 instance HOT 1
- Fails at /nix/var/nix/profiles/system/bin/switch-to-configuration boot HOT 1
- The authorized-keys migrator does not correctly handle sk-variant ssh keys HOT 1
- Allow to modify /boot partition or give a warning when the /boot partition is small
- error: profile '/nix/var/nix/profiles/default' is incompatible with 'nix-env'; please use 'nix profile' instead HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-infect.