Earlier quoted context omitted.
And in your ~/.ssh/config that's the ProxyJump directive. Adding a proper configuration for the bastion/jump host and for the target host means you can just to "ssh target". In my case, I usually do "ssh target -t tmux -2 att" to attach to my tmux session, then when I detach it will close the SSH connection (and all of my tunnels).
That `tmux` bit is clever. Wonder if you could do that in a `ForceCommand` or something like that so you don’t need to type that part either?
SSH hacks – a little sanity for remote workers
21–30 of 230 posts
Re: SSH hacks – a little sanity for remote workers
#22You need to press Enter before using the SSH ~ escape key.
Re: SSH hacks – a little sanity for remote workers
#23Earlier quoted context omitted.
Yup. I have no idea why they call it an escape character . It's an escape sequence , always of length two.
And on an international keyboard it’s ~~, because ~ defaults to being a character modifier. If you nest SSH sessions, then you add more ~s. So in your fifth nested SSH session on an international keyboard the escape sequence would be \n~~~~~~~~~~.
Re: SSH hacks – a little sanity for remote workers
#24Re: SSH hacks – a little sanity for remote workers
#25Wee, no VPN to deal with. No lack of a VPN for remote access to deal with.
Re: SSH hacks – a little sanity for remote workers
#26I commonly do ssh remote ‘(cd foo; git pull; make && run)’
Of course with tramp I don’t have to do this as much as I used to.
Re: SSH hacks – a little sanity for remote workers
#27My favorite SSH trick is to have a machine at work SSH back to my home domain, and provide a tunnel back for Remote Desktop or what have you. Wee, no VPN to deal with. No lack of a VPN for remote access to deal with. https://cygwin.com/pipermail/cygwin/2020-April/244384.html
Re: SSH hacks – a little sanity for remote workers
#28My favorite SSH trick is to have a machine at work SSH back to my home domain, and provide a tunnel back for Remote Desktop or what have you. Wee, no VPN to deal with. No lack of a VPN for remote access to deal with. https://cygwin.com/pipermail/cygwin/2020-April/244384.html
Do be careful doing this, if your company cares, a competent network admin can tell what's going on.
Re: SSH hacks – a little sanity for remote workers
#29My favorite SSH trick is to have a machine at work SSH back to my home domain, and provide a tunnel back for Remote Desktop or what have you. Wee, no VPN to deal with. No lack of a VPN for remote access to deal with. https://cygwin.com/pipermail/cygwin/2020-April/244384.html
Hacking your home domain would give someone a powerful jumping off point for hacking other things on your corporate network.
Re: SSH hacks – a little sanity for remote workers
#30Earlier quoted context omitted.
This is a good one. I've used this in the past in order to get onto IPv6-only networks as well. In my case I don't have IPv6 enabled on my home internet (thanks Verizon!) and I had a tiny virtual machine with Vultr, which at their lowest price point aren't offering IPv4 address space any more. Using a jump through another machine with both 4 and 6 address space saved me from having to cough up more money solely for a…
Use teredo at home. apt install miredo (on most debian based systems) https://en.wikipedia.org/wiki/Teredo_tunneling