dotfiles/.ssh/config
Daniel Lundin e176c27955 Set up opener. Support multiple hosts.
Enable with `systemctl --user enable --now opener@myhost`
2024-03-12 16:07:01 +01:00

27 lines
766 B
Text

ServerAliveInterval 15
ServerAliveCountMax 3
ControlMaster auto
ControlPath ${XDG_RUNTIME_DIR}/ssh_control:%h:%p:%r
ControlPersist 1200
Ciphers aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
AddressFamily inet
PreferredAuthentications=publickey
Include ~/.ssh/private_config
Host 10.1.100.16
Host dln-dev
Hostname 10.1.100.16
#Hostname aarn.shelman.io
#Port 2022
ForwardAgent yes
ExitOnForwardFailure yes
Compression no
LocalForward 127.0.0.1:3000 127.0.0.1:3000
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:9090 127.0.0.1:9090
RemoteForward ${XDG_RUNTIME_DIR}/opener.sock ${XDG_RUNTIME_DIR}/opener.dln-dev.sock
Host *
ForwardAgent no