dot_testing/boxes/netbox/ssh.nix

20 lines
376 B
Nix
Raw Normal View History

2024-12-26 14:21:56 -06:00
{ lib, config, pkgs, machines, ... }:
2024-06-20 20:00:55 -05:00
{
services.openssh = {
enable = true;
ports = [55555];
settings = {
X11Forwarding = false;
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
2024-12-26 14:21:56 -06:00
users.users.ryan.openssh.authorizedKeys.keys = [
machines.copernicus.pubkey
machines.aristotle.pubkey
machines.phone.pubkey
];
2024-06-20 20:00:55 -05:00
}