ajout SSH de secours

This commit is contained in:
nyanloutre 2020-08-30 16:25:51 +02:00
parent 9a0b1f679c
commit 798c2ca66c
1 changed files with 16 additions and 0 deletions

View File

@ -40,6 +40,8 @@ in
autoScrub.enable = true;
};
hardware.usbWwan.enable = true;
# eno1 -> VLAN100 -> Internet
# eno2 -> LAN
# eno3 -> Legacy client DHCP
@ -53,7 +55,10 @@ in
persistent = true;
extraConfig = ''
interface bouyges
metric 10
noarp
interface enp0s21u2
metric 999
'';
};
@ -135,6 +140,17 @@ in
passwordAuthentication = false;
};
users = {
groups.autossh = { };
users.autossh = {
home = "/home/autossh";
createHome = true;
group = "autossh";
};
};
services.autossh.sessions = [ { extraArguments = "-N -R 0.0.0.0:2222:127.0.0.1:22 loutre@vps772619.ovh.net"; monitoringPort = 20000; name = "backup-ssh-reverse"; user = "autossh"; } ];
security.sudo.wheelNeedsPassword = false;
system.stateVersion = "18.03";