use autossh for "persistence"

This commit is contained in:
Daniel Lundin 2021-04-04 09:50:44 +02:00
parent 04cc114168
commit 922a25688c
3 changed files with 10 additions and 8 deletions

View file

@ -160,12 +160,12 @@ return {
},
-- ssh_domains = {
-- {
-- name = "dln-dev",
-- remote_address = "dln-dev",
-- username = "dln",
-- }
-- },
ssh_domains = {
{
name = "dln-dev",
remote_address = "dln-dev",
username = "dln",
}
},
}

View file

@ -7,4 +7,4 @@ TryExec=/usr/bin/wezterm
Icon=org.wezfurlong.wezterm
Terminal=false
Categories=System;TerminalEmulator;
Exec=/usr/bin/wezterm --config 'default_prog={"ssh", "dln-dev"}' start --class=wezterm-dln-dev
Exec=/usr/bin/wezterm --config 'default_prog={"autossh", "-M0", "-q", "dln-dev"}' start --class=wezterm-dln-dev

View file

@ -3,9 +3,11 @@ ServerAliveInterval 3
ServerAliveCountMax 2
ControlMaster auto
ControlPath ~/.ssh/control:%h:%p:%r
ControlPersist 1200
Ciphers aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
AddressFamily inet
RequestTty yes
PreferredAuthentications=publickey
Host dln-dev
Hostname 10.1.100.16