aboutsummaryrefslogtreecommitdiff
path: root/files/.ssh
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2023-09-18 00:26:56 +0500
committerAnton Bobov <anton@bobov.name>2023-10-03 22:10:24 +0500
commitac40e0190eaf45eea000a75f92785ec7786924b7 (patch)
tree24fc5cd638b7ac153aa976d53c513e1778ee1b9b /files/.ssh
parenta431e7abc02df85dbb82c7c31bd948cfbaf63c23 (diff)
[ssh] Add jump syntax via forward slash
Diffstat (limited to 'files/.ssh')
-rw-r--r--files/.ssh/config6
1 files changed, 5 insertions, 1 deletions
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