From 89ecb51a6ae94e010d812e42ab49150485b45457 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 15 Jun 2021 11:49:19 +0200 Subject: [PATCH] nixos/ssh: Add an example of verbatim keys This confused someone on SO. (cherry picked from commit 8352cc9a23a5fea11d467a5b8341b24cd162c62a) --- nixos/modules/services/networking/ssh/sshd.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix index 3cc77e4cb93..fd5da97cd10 100644 --- a/nixos/modules/services/networking/ssh/sshd.nix +++ b/nixos/modules/services/networking/ssh/sshd.nix @@ -41,6 +41,10 @@ let Warning: If you are using NixOps then don't use this option since it will replace the key required for deployment via ssh. ''; + example = [ + "ssh-rsa AAAAB3NzaC1yc2etc/etc/etcjwrsh8e596z6J0l7 example@host" + "ssh-ed25519 AAAAC3NzaCetcetera/etceteraJZMfk3QPfQ foo@bar" + ]; }; keyFiles = mkOption {