From b2aef36f20e56c6c71daee39de84db21301f4593 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 3 Jan 2021 12:44:05 +0100 Subject: [PATCH] ssh fixings --- .ssh/config | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.ssh/config b/.ssh/config index 5531e08..511963d 100644 --- a/.ssh/config +++ b/.ssh/config @@ -1,8 +1,10 @@ ForwardAgent yes - -Host 192.168.* -Host 10.* -StrictHostKeyChecking no +ServerAliveInterval 3 +ServerAliveCountMax 2 +ControlMaster auto +ControlPath ~/.ssh/control:%h:%p:%r +Ciphers aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr +AddressFamily inet Host devel Hostname 10.1.100.16 @@ -12,15 +14,10 @@ ForwardX11 yes ExitOnForwardFailure yes Compression yes RequestTty yes -LocalForward 127.0.0.1:1080 127.0.0.1:1080 -LocalForward 127.0.0.1:8000 127.0.0.1:8000 LocalForward 127.0.0.1:8080 127.0.0.1:8080 LocalForward 127.0.0.1:8200 127.0.0.1:8200 LocalForward 127.0.0.1:8250 127.0.0.1:8250 LocalForward 127.0.0.1:8888 127.0.0.1:8888 -LocalForward 127.0.0.1:9090 127.0.0.1:9090 -LocalForward 127.0.0.1:15000 127.0.0.1:15000 -LocalForward 127.0.0.1:9876 127.0.0.1:9876 RemoteForward /run/user/1000/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra RemoteForward /run/user/1000/gnupg/S.gpg-agent.ssh /run/user/1000/gnupg/S.gpg-agent.ssh RemoteCommand /usr/bin/env LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 /usr/bin/tmux new-session -A -D -s 0