2024-12-26 21:28:25 -06:00
|
|
|
{ machines, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
};
|
2024-12-31 11:04:50 -06:00
|
|
|
listenAddresses = [
|
|
|
|
{
|
|
|
|
addr = "192.168.1.201";
|
|
|
|
port = 2222;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
addr = "10.100.0.2";
|
|
|
|
port = 2222;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.interfaces.eno1 = {
|
|
|
|
allowedTCPPorts = [ 2222 ];
|
2024-12-26 21:28:25 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
users.users.usr.openssh.authorizedKeys.keys = [
|
|
|
|
machines.copernicus.pubkey
|
|
|
|
machines.aristotle.pubkey
|
|
|
|
machines.phone.pubkey
|
|
|
|
];
|
|
|
|
}
|