diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index 0dbf3b0..7f8d609 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -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", + } + }, } diff --git a/.local/share/applications/wezterm-dln-dev.desktop b/.local/share/applications/wezterm-dln-dev.desktop index e5e9c59..c463d3a 100644 --- a/.local/share/applications/wezterm-dln-dev.desktop +++ b/.local/share/applications/wezterm-dln-dev.desktop @@ -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 diff --git a/.ssh/config b/.ssh/config index a2f140a..3d99bfe 100644 --- a/.ssh/config +++ b/.ssh/config @@ -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