opened 11:14AM - 08 Oct 22 UTC
0.kind: bug
### Describe the bug
Hi!
I have recently installed nixos on my raspberry pi …4B (aarch64-linux) and I have noticed that everytime I try to ssh to it its ssh host key has changed and i have to edit my known_hosts. After "debugging" it, I have confirmed that everytime the pi boots the ssh host key generation produces a new key.
This has not happend on any other of my nixos installations (all of them are x86_64-linux), so I am maybe wondering if this is a bug with any aarch64-linux nixpkgs/ssh implementation or its maybe a hardware specific issue with the pi 4B.
Thank you for your help!
### Steps To Reproduce
Steps to reproduce the behavior:
1. Install nixos-22.05 on aarch64-linux
2. Enable openssh server
3. Profit?
### Expected behavior
ssh host key stays the same across reboots
### Actual behaviour
ssh host key changes on each reboot
### Additional context
Running nixos 22.05 on the raspberry pi 4B
Configuration: https://github.com/baitinq/nixos-server
### Notify maintainers
@edolstra
### Metadata
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-linux"`
- host os: `Linux 5.15.32, NixOS, 22.05 (Quokka), 22.05.20221001.9cac458`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.8.1`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
```