Enable SSH connection multiplexing

This commit is contained in:
Mikael Voss 2024-08-06 21:55:23 +00:00
parent d990056b6f
commit 3455a2d6b0
No known key found for this signature in database

View file

@ -228,6 +228,11 @@ in {
programs.ssh = {
enable = true;
compression = true;
controlMaster = "auto";
controlPath = "\${XDG_RUNTIME_DIR}/ssh/%r@%n:%p";
controlPersist = "1m";
matchBlocks = {
"*.nyantec.com".user = "mvs";
"solitary.social" = {
@ -314,6 +319,10 @@ in {
services.ssh-agent.enable = true;
systemd.user.tmpfiles.rules = [
"d %t/ssh 700"
];
xdg.userDirs =
let
home = config.home.homeDirectory;