config/.ssh/config

58 lines
1.1 KiB
Plaintext

#from https://wiki.gentoo.org/wiki/SSH_jump_host
Host *+*
ProxyCommand ssh $(echo %h | sed 's/+[^+]*$//;s/\([^+%%]*\)%%\([^+]*\)$/\2 -l \1/;s/:/ -p /') nc -w1 $(echo %h | sed 's/^.*+//;/:/!s/$/ %p/;s/:/ /')
Host synology
Hostname 192.168.0.25
User admin
Host lichee
Hostname 192.168.2.100
User root
Host mathux nuka
Hostname mathux.org
Port 22
User mathieu
ForwardX11 yes
ForwardX11Trusted yes
Host mathux_fast
Hostname mathux.org
Port 22
User mathieu
#Use a single connection
ControlMaster auto
ControlPersist yes
ControlPath ~/.ssh/socket-%r@%h:%p
#Compression
Compression yes
#Low Cpu ciphers
#Ciphers arcfour,blowfish-cbc
#Bypass ipv6
AddressFamily inet
Host nukem
Hostname bk.mathux.org
User mathieu
Host spacemarine
Hostname 192.168.0.22
User mathieu
Host efika
Hostname 192.168.0.20
User mathieu
Host vbox
HostName 192.168.56.101
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel QUIET
Host pixium
HostName localhost
Port 2222
User mmaret
ProxyCommand ssh nuka -W %h:%p