dot.nix/host/proxy/modules/ssh/default.nix
Chris Toph ee1ed4739e Complete Merge of all Hosts
WIP but should should be mostly working
2024-09-22 01:07:26 -04:00

18 lines
No EOL
534 B
Nix

{
programs.ssh.startAgent = true;
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIClZstYoT64zHnGfE7LMYNiQPN5/gmCt382lC+Ji8lrH PVE"
];
services.openssh = {
enable = true;
settings = {
AllowUsers = null; # everyone
GatewayPorts = "yes"; # allow remote port forwarding with AutoSSH
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
PermitRootLogin = "yes";
};
};
}