SSH hacks – a little sanity for remote workers
smallstep.com
SSH hacks – a little sanity for remote workers
1–10 of 230 posts
Re: SSH hacks – a little sanity for remote workers
#2Re: SSH hacks – a little sanity for remote workers
#3Re: SSH hacks – a little sanity for remote workers
#4 $ ssh -J user1@host1 user_final@host_final
or $ ssh -J user1@host1,user2@host2 user_final@host_final
Not many people know it, you don't need to launch a SSH within a SSH session - SSH has built-in support of using one SSH server as a proxy to another SSH server. Useful for hacking servers accessing servers behind a firewall, or using your own server as a proxy to bypass a bottleneck in the network.Re: SSH hacks – a little sanity for remote workers
#5You need to press Enter before using the SSH ~ escape key.
Re: SSH hacks – a little sanity for remote workers
#6I miss having a job that required SSH'ing into a server to get work done. Nowadays everything is abstracted, push your code to the magic cloud and pull in 1000x other stupid little APIs. It's so boring...
Re: SSH hacks – a little sanity for remote workers
#7You need to press Enter before using the SSH ~ escape key.
Yup. I have no idea why they call it an escape character . It's an escape sequence , always of length two.
Re: SSH hacks – a little sanity for remote workers
#8> What are your favorite SSH tips & tricks? $ ssh -J user1@host1 user_final@host_final or $ ssh -J user1@host1,user2@host2 user_final@host_final Not many people know it, you don't need to launch a SSH within a SSH session - SSH has built-in support of using one SSH server as a proxy to another SSH server. Useful for hacking servers accessing servers behind a firewall, or using your own server as a proxy to bypass a b…
Re: SSH hacks – a little sanity for remote workers
#9> What are your favorite SSH tips & tricks? $ ssh -J user1@host1 user_final@host_final or $ ssh -J user1@host1,user2@host2 user_final@host_final Not many people know it, you don't need to launch a SSH within a SSH session - SSH has built-in support of using one SSH server as a proxy to another SSH server. Useful for hacking servers accessing servers behind a firewall, or using your own server as a proxy to bypass a b…
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…
apt install miredo (on most debian based systems)
Re: SSH hacks – a little sanity for remote workers
#10> What are your favorite SSH tips & tricks? $ ssh -J user1@host1 user_final@host_final or $ ssh -J user1@host1,user2@host2 user_final@host_final Not many people know it, you don't need to launch a SSH within a SSH session - SSH has built-in support of using one SSH server as a proxy to another SSH server. Useful for hacking servers accessing servers behind a firewall, or using your own server as a proxy to bypass a b…
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).