mirror of
https://github.com/wlcx/home.git
synced 2026-07-08 13:33:13 +01:00
ssh: connection sharing thing
This commit is contained in:
parent
a6a4f5660b
commit
344f52c05b
@ -115,6 +115,10 @@ in
|
|||||||
serverAliveInterval = 30;
|
serverAliveInterval = 30;
|
||||||
serverAliveCountMax = 10;
|
serverAliveCountMax = 10;
|
||||||
compression = true;
|
compression = true;
|
||||||
|
controlMaster = "autoask";
|
||||||
|
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||||
|
# Close socket once last connection closes
|
||||||
|
controlPersist = "no";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -19,6 +19,17 @@
|
|||||||
extraOptions."IdentityAgent" =
|
extraOptions."IdentityAgent" =
|
||||||
"~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
"~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
||||||
};
|
};
|
||||||
programs.zsh.sessionVariables.SSH_AUTH_SOCK = "$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
programs.zsh.sessionVariables = {
|
||||||
|
SSH_AUTH_SOCK = "$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
||||||
|
# Make connection muxing permission work.
|
||||||
|
# Openssh by default will only use SSH_ASKPASS if it sees DISPLAY/WAYLAND_DISPLAY, so we have to force it
|
||||||
|
SSH_ASKPASS_REQUIRE = "force";
|
||||||
|
# A nice applescript permission dialog
|
||||||
|
SSH_ASKPASS = (pkgs.fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/theseal/ssh-askpass/refs/heads/master/ssh-askpass";
|
||||||
|
hash= "sha256-bQUuGS3Mb+i4Kt+1mDP203s2W1jlRcpl/7uXA7TUZ+o=";
|
||||||
|
executable = true;
|
||||||
|
});
|
||||||
|
};
|
||||||
programs.zsh.initContent = "[ -e /opt/homebrew/bin/brew ] && eval $(/opt/homebrew/bin/brew shellenv)";
|
programs.zsh.initContent = "[ -e /opt/homebrew/bin/brew ] && eval $(/opt/homebrew/bin/brew shellenv)";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user