[Nix-dev] Possible bug in ssh key module

Anand Patil anand.prabhakar.patil at gmail.com
Mon May 11 04:55:28 CEST 2015


Sorry, "ssh-rsa stuff" was a bad example because I can only reproduce
the problem when the string is sufficiently long. This does repro it:

openssh.authorizedKeys.keys = [ "ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQC27UXRth2OuY6I23hcej1Lq5SJ8V3TP1mbASUewEflThIduS+5tDl6W0mkikeQvXIpnsfe/JxzlBYdPV0hzM5hPZLmHEg0Z/k8oyC58RoTiBQ83VD1Tl09dlcnScQXKCqPnw+O92Y8gAr/F9N+NPOx28QUqGXfelkFjLs3xdWUhshin4oknl/fCjB20hH0A0N7/ZXOw/oArGG8xZBE84XSwE5LQgMcNluDjpxRVECBy1XkWy8qbztCoRci/CCJE3VRXLMxjg0Fh2AQl/5LXTd6ekmr3Ui/tAbDwKLVjUz0rPAnADW0S54dJ6FJoNg9YcR6uk972ZQt64m+SGe89heF"
]

Anand

On Sun, May 10, 2015 at 7:45 PM, Anand Patil
<anand.prabhakar.patil at gmail.com> wrote:
> Hi everyone,
>
>
> Just wanted to point out a small possible bug in NixOS version
> 15.05pre61966.75ebc3c (Dingo). I noticed that when I add an
> authorizedKeys option to my user like so:
>
>     openssh.authorizedKeys.keys = [ "ssh-rsa stuff" ];
>
> the contents of /etc/ssh/authorized_keys.d/anand look like
>
> ssh-rsa
> stuff
>
> with a newline after the "ssh-rsa", and I can't ssh in with public key
> authentication. When I edit /etc/ssh/authorized_keys.d/anand to remove
> the newline, it works.
>
>
> I'm really enjoying learning NixOS so far, thanks for a great distro! I hope
> to be able to patch small things like this myself soon. :)
>
>
> Anand


More information about the nix-dev mailing list