Try other ssh-add feature
This commit is contained in:
parent
3d0fa112aa
commit
26ec7d61f1
|
@ -152,14 +152,6 @@
|
|||
maxCacheTtl = 31536000; # 1year
|
||||
};
|
||||
};
|
||||
systemd.user.services.auto-ssh-add = {
|
||||
Service = {
|
||||
ExecStart = toString (pkgs.writeShellScript "auto-ssh-add"
|
||||
"ssh-add < /dev/null"); # to trigger the usage of SSH_ASKPASS
|
||||
Type = "oneshot";
|
||||
};
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
};
|
||||
|
||||
xdg.enable = true;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
if [[ -z $(ssh-add -L) ]] {
|
||||
DISPLAY="a" ssh-add < /dev/null
|
||||
}
|
||||
if [[ -n "$SSH_CONNECTION" && -z "$TMUX" ]] {
|
||||
exec mytmux
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue