fix(ssh): consolidate declarative ssh client configuration
Update programs.ssh configuration to eliminate deprecation warning for implicit default settings. - Add `enableDefaultConfig = false;` to programs.ssh. - Extract shared `User`, `ServerAliveInterval` and `ServerAliveCountMax` into a global "*" settings block. - Remove duplicate entries from individual host configuration blocks.
This commit is contained in:
1 parent
4ffd77793a
commit
fb998d858f
1 file changed
+6
-9
@@ -85,27 +85,24 @@
|
|||||||
# Declaratively configures SSH client connections and host options
|
# Declaratively configures SSH client connections and host options
|
||||||
ssh = {
|
ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableDefaultConfig = false;
|
||||||
settings = {
|
settings = {
|
||||||
laptop = {
|
"*" = {
|
||||||
HostName = "192.168.1.32";
|
|
||||||
User = "kiskaadee";
|
User = "kiskaadee";
|
||||||
Port = 22;
|
|
||||||
ServerAliveInterval = 15;
|
ServerAliveInterval = 15;
|
||||||
ServerAliveCountMax = 3;
|
ServerAliveCountMax = 3;
|
||||||
};
|
};
|
||||||
|
laptop = {
|
||||||
|
HostName = "192.168.1.32";
|
||||||
|
Port = 22;
|
||||||
|
};
|
||||||
server-local = {
|
server-local = {
|
||||||
HostName = "192.168.1.36";
|
HostName = "192.168.1.36";
|
||||||
User = "kiskaadee";
|
|
||||||
Port = 22;
|
Port = 22;
|
||||||
ServerAliveInterval = 15;
|
|
||||||
ServerAliveCountMax = 3;
|
|
||||||
};
|
};
|
||||||
server-remote = {
|
server-remote = {
|
||||||
HostName = "roadtotech.me";
|
HostName = "roadtotech.me";
|
||||||
User = "kiskaadee";
|
|
||||||
Port = 2222;
|
Port = 2222;
|
||||||
ServerAliveInterval = 15;
|
|
||||||
ServerAliveCountMax = 3;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user