summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-13 16:18:52 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-13 16:21:57 +0200
commit7b38cb699db5d1e08ead7bd8de1bd50c095d3082 (patch)
treedd7c7b940c5471a874ca17420d9558a3f2259ffb
parenta4788bdddf3831b95897df9281727396f71cee5f (diff)
downloadnixpkgs-7b38cb699db5d1e08ead7bd8de1bd50c095d3082.tar
nixpkgs-7b38cb699db5d1e08ead7bd8de1bd50c095d3082.tar.gz
nixpkgs-7b38cb699db5d1e08ead7bd8de1bd50c095d3082.tar.bz2
nixpkgs-7b38cb699db5d1e08ead7bd8de1bd50c095d3082.tar.lz
nixpkgs-7b38cb699db5d1e08ead7bd8de1bd50c095d3082.tar.xz
nixpkgs-7b38cb699db5d1e08ead7bd8de1bd50c095d3082.tar.zst
nixpkgs-7b38cb699db5d1e08ead7bd8de1bd50c095d3082.zip
services.openssh.knownHosts.*.publicKey: Update description and add example
Note that it's no longer allowed to have multiple public keys
separated by a newline.
-rw-r--r--nixos/modules/services/networking/ssh/sshd.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix
index bc89ea2d3cd..4be2b5fe0c0 100644
--- a/nixos/modules/services/networking/ssh/sshd.nix
+++ b/nixos/modules/services/networking/ssh/sshd.nix
@@ -244,13 +244,12 @@ in
           publicKey = mkOption {
             default = null;
             type = types.nullOr types.str;
+            example = "ecdsa-sha2-nistp521 AAAAE2VjZHN...UEPg==";
             description = ''
               The public key data for the host. You can fetch a public key
               from a running SSH server with the <command>ssh-keyscan</command>
               command. The public key should not include any host names, only
-              the key type and the key itself. It is allowed to add several
-              lines here, each line will be treated as type/key pair and the
-              host names will be prepended to each line.
+              the key type and the key itself.
             '';
           };
           publicKeyFile = mkOption {