ssh: config to get defaults right
This commit is contained in:
parent
b4db1c4887
commit
ebcced2c12
1 changed files with 16 additions and 14 deletions
30
.ssh/config
30
.ssh/config
|
@ -1,3 +1,16 @@
|
||||||
|
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
|
||||||
|
RequestTty yes
|
||||||
|
PreferredAuthentications=publickey
|
||||||
|
SendEnv LC_* LANG
|
||||||
|
|
||||||
|
Include ~/.ssh/private_config
|
||||||
|
|
||||||
Host 10.1.100.16
|
Host 10.1.100.16
|
||||||
Host dln-dev
|
Host dln-dev
|
||||||
Hostname 10.1.100.16
|
Hostname 10.1.100.16
|
||||||
|
@ -9,20 +22,9 @@ LocalForward 127.0.0.1:3011 127.0.0.1:3011
|
||||||
LocalForward 127.0.0.1:8000 127.0.0.1:8000
|
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:8080 127.0.0.1:8080
|
||||||
|
|
||||||
ForwardAgent no
|
|
||||||
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
|
|
||||||
SendEnv LC_* LANG
|
|
||||||
|
|
||||||
Include ~/.ssh/private_config
|
|
||||||
|
|
||||||
Host gitlab.com
|
Host gitlab.com
|
||||||
IdentityAgent /dev/null
|
IdentityAgent /dev/null
|
||||||
PKCS11Provider /usr/lib/pkcs11/libtpm2_pkcs11.so
|
PKCS11Provider /usr/lib/pkcs11/libtpm2_pkcs11.so
|
||||||
|
|
||||||
|
Host *
|
||||||
|
ForwardAgent no
|
||||||
|
|
Loading…
Reference in a new issue