2024-05-04 23:15:57 +03:00
|
|
|
# SSH client configuration.
|
2024-08-22 04:49:09 +03:00
|
|
|
{ util, ... }: let
|
2024-08-24 17:41:18 +03:00
|
|
|
mkHost = name: address: port: user: extra: ''
|
2024-08-22 04:49:09 +03:00
|
|
|
Host ${name}
|
|
|
|
HostName ${address}
|
|
|
|
User ${user}
|
|
|
|
Port ${toString port}
|
|
|
|
'' + extra;
|
|
|
|
in {
|
2024-08-24 17:41:18 +03:00
|
|
|
text = util.trimTabs (''
|
|
|
|
Host *
|
|
|
|
ControlMaster auto
|
2024-08-24 18:57:44 +03:00
|
|
|
ControlPath ~/.ssh/%r@%h:%p.socket
|
2024-08-24 17:41:18 +03:00
|
|
|
ControlPersist yes
|
|
|
|
''
|
|
|
|
+ mkHost "dasha" "10.0.0.7" 22143 "root" ""
|
|
|
|
+ mkHost "desktop" "10.0.0.3" 22143 "root" ""
|
|
|
|
+ mkHost "fmpmaven" "10.30.22.10" 22 "root" ""
|
|
|
|
+ mkHost "home" "10.0.0.1" 22143 "root" ""
|
|
|
|
+ mkHost "laptop" "192.168.1.9" 22143 "root" ""
|
|
|
|
+ mkHost "pi" "192.168.1.6" 22143 "root" ""
|
|
|
|
+ mkHost "vpn" "194.113.233.38" 22143 "root" ""
|
|
|
|
+ mkHost "work" "192.168.1.5" 22143 "root" ""
|
2024-08-22 04:49:09 +03:00
|
|
|
|
2024-08-24 17:41:18 +03:00
|
|
|
+ mkHost "nixbuilder" "10.0.0.1" 22143 "nixbuilder" " StrictHostKeyChecking=accept-new"
|
|
|
|
);
|
2024-04-06 03:03:58 +03:00
|
|
|
}
|