Elektrine lite

← Feed

@probablymissing@lemmy.world

Post #526872

2026-03-04 22:42 UTC

as a nixos enjoyer, i have no idea how to setup ssh keys. fail2ban and a regular password for me. yes, i have locked myself out of my own server for hours at a time because i’m an absolute tool.

Replies (1)

  • Ehm… I’m also on Nixos and I’d say it’s super trivial. services.openssh = { enable = true; settings = { PasswordAuthentication = false; PermitRootLogin = "no"; }; }; users.users..openssh.authorizedKeys.keys = [ list of pubkeys ideally read from file in repo ];

    Open ##531497