mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Joe Groocock
b519b48e83
These rely on SSH configuring ControlMaster and ControlSocket for the host so the connection can be reused. Signed-off-by: Joe Groocock <me@frebib.net>
14 lines
235 B
Desktop File
14 lines
235 B
Desktop File
[Unit]
|
|
Description=SSH persistent connection to %i
|
|
|
|
[Service]
|
|
Type=forking
|
|
Slice=ssh.slice
|
|
Environment=SSH_ASKPASS=%E/ssh/askpass
|
|
Environment=SSH_HOST=%i
|
|
ExecStart=/usr/bin/ssh -fNT %i
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=ssh.target
|