16726 shaares
~/.ssh/configAdd this text
Host *+*
ProxyCommand ssh $(echo %h | sed 's/+[^+]*$//;s/\([^+%%]*\)%%\([^+]*\)$/\2 -l \1/;s/:/ -p /') exec nc -w1 $(echo %h | sed 's/^.*+//;/:/!s/$/ %p/;s/:/ /')
Via https://www.ecirtam.net/links/?Bvq1TA & https://www.e-jim.be/liens/?hnlMFg