Relocated SSH control master sockets

This commit is contained in:
Ezri Brimhall 2024-03-19 13:31:11 -06:00
parent 49863dd233
commit 91ca50ba63
Signed by: ezri
GPG Key ID: 058A78E5680C6F24
2 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,7 @@ _rename_window "$DEFAULT_WINDOW_NAME"
function ssh-clean() {
# Clean up ssh connection sockets
for i in $(find ~/.ssh -type s -name 'cm-*'); do
for i in $(find ~/.ssh/cm/ -type s); do
fname=$(basename $i)
conn=$(echo $fname | cut -d- -f2-)
user=$(echo $conn | cut -d@ -f1)

View File

@ -8,6 +8,7 @@ Include ~/.config/ssh/*.conf
# Default config
Host *
ControlPath ~/.ssh/cm-%r@%h:%p
ControlPersist 30m
ControlMaster auto
ControlPath ~/.ssh/cm/%j-%r@%n:%p
ControlPersist 30m
ControlMaster auto
PreferredAuthentications publickey,keyboard-interactive,password