From e5c18e527168930e9dec8aa32f1d72b523679daa Mon Sep 17 00:00:00 2001 From: katherine Date: Wed, 1 Nov 2023 21:40:56 -0700 Subject: keepalive for ssh commands --- .zshrc-linux-desktop | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.zshrc-linux-desktop') diff --git a/.zshrc-linux-desktop b/.zshrc-linux-desktop index 5b1e593..58448fe 100644 --- a/.zshrc-linux-desktop +++ b/.zshrc-linux-desktop @@ -1,11 +1,11 @@ ################### ALIASES ################## -alias smutt='ssh -t shmibs@airen-no-jikken.icu mutt' -alias ssmutt='ssh -t shmibs@airen-no-jikken.icu mutt -f sent' -alias kmutt='ssh -t k@airen-no-jikken.icu mutt' -alias ksmutt='ssh -t k@airen-no-jikken.icu mutt -f sent' -alias amutt='ssh -t ageha@airen-no-jikken.icu mutt' -alias asmutt='ssh -t ageha@airen-no-jikken.icu mutt -f sent' +alias smutt='ssh -o ServerAliveInterval=5 -t shmibs@airen-no-jikken.icu mutt' +alias ssmutt='ssh -o ServerAliveInterval=5 -t shmibs@airen-no-jikken.icu mutt -f sent' +alias kmutt='ssh -o ServerAliveInterval=5 -t k@airen-no-jikken.icu mutt' +alias ksmutt='ssh -o ServerAliveInterval=5 -t k@airen-no-jikken.icu mutt -f sent' +alias amutt='ssh -o ServerAliveInterval=5 -t ageha@airen-no-jikken.icu mutt' +alias asmutt='ssh -o ServerAliveInterval=5 -t ageha@airen-no-jikken.icu mutt -f sent' if [[ $(whence sshfs) != "" ]] then alias smount='mkdir -p ~/mount-shmibs && sshfs shmibs@airen-no-jikken.icu: ~/mount-shmibs || rmdir ~/mount-shmibs' -- cgit v1.2.3