dotfiles/.ssh/config

32 lines
1.2 KiB
Text

ForwardAgent yes
ServerAliveInterval 15
ServerAliveCountMax 3
ControlMaster auto
ControlPath ~/.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
RequestTty yes
PreferredAuthentications=publickey
Host gitlab.com
PKCS11Provider /usr/lib/pkcs11/libtpm2_pkcs11.so
Host dln-dev
Hostname 10.1.100.16
IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh
ForwardAgent yes
ForwardX11 yes
ExitOnForwardFailure yes
Compression yes
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:8081 127.0.0.1:8081
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
# 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
# RemoteForward /run/user/1000/gnupg/S.scdaemon /run/user/1000/gnupg/S.scdaemon
RemoteForward ${XDG_RUNTIME_DIR}/bus-notification ${XDG_RUNTIME_DIR}/bus-notification