use autossh for "persistence"
This commit is contained in:
parent
04cc114168
commit
922a25688c
3 changed files with 10 additions and 8 deletions
|
@ -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",
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue