ajout SSH de secours
This commit is contained in:
parent
9a0b1f679c
commit
798c2ca66c
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user