config/.ssh/config

38 lines
762 B
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 mathux nuka
Hostname mathux.org
Port 22
User mathieu
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 hector
Hostname bk.mathux.org
User mathieu
Host spacemarine
Hostname 192.168.0.22
User mathieu
Host vbox
HostName 192.168.56.101
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel QUIET