Live data from Hacker News

Lazy Linux: essential tricks for admins

ibm.com

1–10 of 54 posts

Re: Lazy Linux: essential tricks for admins

#6
Trick 5 (opening a remote port on a "public" machine to connect back to your local machine) is great. Combine it:

office$ ssh -R 9999:localhost:22 user@home ## do this in a screen for good measure

and another lesser known ssh feature:

home$ ssh -D 8888 -p 9999 user@localhost

and now you have a SOCKS proxy on home:8888 that will access everything visible to the computer named "office".

For extra credit add PingTunnel and a hotspot that happens to allow ICMP and enjoy free internet wherever you go.

Re: Lazy Linux: essential tricks for admins

#7
Very nice collection. A tech at the datacenter that hosts one my servers showed me trick #3 and I remember being thrilled sitting there watching him do stuff on my server and sharing the keyboard to type messages back and forth in vi.

My company uses trick #5 as a primary feature for accessing the remote Linux machines that our product is built upon. We have it set up so that every single machine automatically creates a reverse SSH tunnel to the server on boot, so that the tunnel is always accessible in case we need it. Very cool stuff.

Re: Lazy Linux: essential tricks for admins

#10
post #6

Trick 5 (opening a remote port on a "public" machine to connect back to your local machine) is great. Combine it: office$ ssh -R 9999:localhost:22 user@home ## do this in a screen for good measure and another lesser known ssh feature: home$ ssh -D 8888 -p 9999 user@localhost and now you have a SOCKS proxy on home:8888 that will access everything visible to the computer named "office". For extra credit add PingTunnel…

Thanks for the tip on ping tunnel, I hadn't heard of it.... Going to have fun checking it out
Post reply on HN