Skip to content

Commit d627413

Browse files
committed
ssh: add connect timeout
1 parent 1cbed6d commit d627413

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

modules/common/programs/terminal/tools/ssh/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ let
3636
" Hostname ${remote.hostname}"
3737
" User ${remote-user-name}"
3838
" ForwardAgent yes"
39+
" ConnectTimeout 10"
3940
port-expr
4041
forward-gpg
4142
]

modules/home/programs/terminal/tools/ssh/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ in
7878
extraConfig =
7979
''
8080
StreamLocalBindUnlink yes
81+
ConnectTimeout 5
8182
''
8283
+ lib.optionalString (cfg.extraConfig != "") cfg.extraConfig;
8384
};

0 commit comments

Comments
 (0)