From 94f544be833f1c3a40ac323c3e37786e57bbf63f Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 28 Nov 2022 03:52:35 +0000 Subject: [PATCH] Update dotfiles/.local/share/chezmoi/home/dot_ssh/private_config.tmpl --- .../chezmoi/home/dot_ssh/private_config.tmpl | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/dotfiles/.local/share/chezmoi/home/dot_ssh/private_config.tmpl b/dotfiles/.local/share/chezmoi/home/dot_ssh/private_config.tmpl index 9b11a649..9618bb80 100644 --- a/dotfiles/.local/share/chezmoi/home/dot_ssh/private_config.tmpl +++ b/dotfiles/.local/share/chezmoi/home/dot_ssh/private_config.tmpl @@ -1,12 +1,25 @@ -Host *+* - UserKnownHostsFile /dev/null - StrictHostKeyChecking=no - ProxyCommand ssh -v $(echo %h | sed -e 's/+[^+]*$//; s/\([^+=]*\)=\([^+]*\)$/\2 -l \1/; s/^\([^+:]*\):\([0-9]*\)+/-p \2 \1+/' ) -W $(echo %h | sed -e 's/^.*+//; s/:.*$//;'):$(echo %h | sed -e ' s/^.*+//; /:/!s/^.*/22/; s/^.*://' ;) +# Host *+* +# UserKnownHostsFile /dev/null +# StrictHostKeyChecking=no +# ProxyCommand ssh -v $(echo %h | sed -e 's/+[^+]*$//; s/\([^+=]*\)=\([^+]*\)$/\2 -l \1/; s/^\([^+:]*\):\([0-9]*\)+/-p \2 \1+/' ) -W $(echo %h | sed -e 's/^.*+//; s/:.*$//;'):$(echo %h | sed -e ' s/^.*+//; /:/!s/^.*/22/; s/^.*://' ;) Host * - User {{ .user.username }} - Compression yes + AddKeysToAgent no + Compression no + ControlMaster auto + ControlPath /tmp/ssh-%r@%h:%p + ControlPersist 5 + ExitOnForwardFailure yes + ForwardAgent no + ForwardX11 no + ForwardX11Trusted no GSSAPIAuthentication no - ServerAliveInterval 600 + PreferredAuthentications publickey + Protocol 2 + ServerAliveInterval 60 + ServerAliveCountMax 30 + IdentitiesOnly yes +Host gitlab.com + UpdateHostKeys no {{- if ne .host.distro.family "windows" }} ControlMaster auto ControlPath /tmp/ssh-%r@%h:%p