ssh: add support for ServerAliveCountMax

PR #1299
This commit is contained in:
Damien Cassou 2020-06-01 16:50:34 +02:00 committed by Robert Helgesson
parent dd50dc4c13
commit a21c97d011
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
6 changed files with 42 additions and 1 deletions

View file

@ -6,6 +6,7 @@ Host *
ForwardAgent no
Compression no
ServerAliveInterval 0
ServerAliveCountMax 3
HashKnownHosts no
UserKnownHostsFile ~/.ssh/known_hosts
ControlMaster no

View file

@ -10,6 +10,7 @@ Host *
ForwardAgent no
Compression no
ServerAliveInterval 0
ServerAliveCountMax 3
HashKnownHosts no
UserKnownHostsFile ~/.ssh/known_hosts
ControlMaster no

View file

@ -10,6 +10,7 @@ Host abc
Host xyz
ServerAliveInterval 60
ServerAliveCountMax 10
IdentityFile file
LocalForward [localhost]:8080 [10.0.0.1]:80
RemoteForward [localhost]:8081 [10.0.0.2]:80
@ -23,6 +24,7 @@ Host *
ForwardAgent no
Compression no
ServerAliveInterval 0
ServerAliveCountMax 3
HashKnownHosts no
UserKnownHostsFile ~/.ssh/known_hosts
ControlMaster no

View file

@ -17,6 +17,7 @@ with lib;
xyz = {
identityFile = "file";
serverAliveInterval = 60;
serverAliveCountMax = 10;
localForwards = [{
bind.port = 8080;
host.address = "10.0.0.1";