News for hackers. Stuff that matters.
Re:SSH into private machines from anywhere using Cloudflare ... by trinovantes on Thursday February 10, 2022 @08:17AM (#30285565)
I use this alias in my .ssh/config to connect through a gateway machine:

    Host myserver
        User user
        ProxyCommand ssh -q public-server nc -q0 private-server 22
I can't remember what these flags actually do but they seem to get the job done
Re:SSH into private machines from anywhere using Cloudflare ... by taftster on Thursday February 10, 2022 @03:02PM (#30291667)
ProxyJump is slightly preferred in modern SSH. Does what you're doing, but with simpler syntax. Take a look.
Re:SSH into private machines from anywhere using Cloudflare ... by trinovantes on Thursday February 10, 2022 @10:37PM (#30296601)
Thanks, I see that it's a fairly recent addition to OpenSSH

I wrote that alias about a decade ago when it wasn't available for me yet

Re:SSH into private machines from anywhere using Cloudflare ... by taftster on Friday February 11, 2022 @01:30PM (#30305194)
Yeah, it's a new parameter, based on exactly this common use case.