3 ms·
Pro tip: if you used ssh to get into host A and then another ssh to get from host A into host B, to break the A-B connection you need to issue `~~.` ("control
by maratc 4y ago
Pro tip: if you used ssh to get into host A and then another ssh to get from host A into host B, to break the A-B connection you need to issue `~~.`
("control up-arrow Q" song playing in the background.)
- imp0cat 4y agoThanks.
- yuvadam 4y agoAlternatively just use jump hosts: $(ssh -J bastion target)
- penguin_booze 4y agoOh, I didn't know about the -J option. At $WORK, after ssh-ing onto the jump host, we've to do 'sudo -u special_user sudosh' (no password) before we ssh further. I don't suppose there's any way around that, is there?
- maratc 4y agoProxyCommand may help you; see [0] [0] https://sshmenu.sourceforge.net/articles/transparent-mulithop.html https://sshmenu.sourceforge.net/articles/transparent-mulitho...
- totetsu 4y agoAnd if you use host A like that enough you can also change the ssh escape key in your config.