From ac40e0190eaf45eea000a75f92785ec7786924b7 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Mon, 18 Sep 2023 00:26:56 +0500 Subject: [ssh] Add jump syntax via forward slash --- files/.ssh/config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'files/.ssh') diff --git a/files/.ssh/config b/files/.ssh/config index 581d4b9..b474b06 100644 --- a/files/.ssh/config +++ b/files/.ssh/config @@ -3,7 +3,7 @@ Include ~/.ssh/*.conf HashKnownHosts no # Enable automatic connection multiplexing by default. ControlMaster auto -ControlPath ~/.ssh/.control.%n.%p.%r +ControlPath ~/.ssh/.control.%C ControlPersist 60m ServerAliveInterval 60 TCPKeepAlive yes @@ -15,6 +15,10 @@ SendEnv LANG LC_* TZ # Automatically add new host keys to the known_hosts file StrictHostKeyChecking accept-new +Host */* + ProxyCommand ssh $(dirname %h) -W $(basename %h):%p + ProxyJump "$(dirname %h)" + Host 192.168.*.* StrictHostKeyChecking no UserKnownHostsFile /dev/null -- cgit v1.2.3