Live data from Hacker News

Show HN: Mole – an open source tool to easily create ssh tunnels

davrodpin.github.io

31–40 of 61 posts

Re: Show HN: Mole – an open source tool to easily create ssh tunnels

#31
post #7

Here are the example commands, with the SSH equivalent. There's a small syntax difference, but otherwise I don't think this tool adds much. $ mole -local 127.0.0.1:3306 -remote 127.0.0.1:3306 -server example@172.12.0.100 $ ssh -L3306:127.0.0.1:3306 example@172.12.0.100 $ mole -v -local 127.0.0.1:8080 -remote 172.17.0.100:80 -server user@example.com:22 -key ~/.ssh/id_rsa $ ssh -v -L8080:172.17.0.100:80 -p 22 -I ~/.ssh…

> You now bypass any corporate HTTP proxy.

Assuming that said corporation isn’t blocking random ssh connections with their fancy NGFW. ;)

Re: Show HN: Mole – an open source tool to easily create ssh tunnels

#32
post #27

I'm not sure if I missed something? Normally I use -L syntax for tunneling (-L local_port:remote_addr:remote_port). Does this tool do more?

I don't know if it does but I kind of assumed/hoped it did reconnect if a connection drops. But I can't find anything about it so I guess it doesn't.

Uh. I run an autossh program on the host in question. It auto-runs ssh connections when they drop, including tunnels.

https://www.everythingcli.org/ssh-tunnelling-for-fun-and-pro...

Re: Show HN: Mole – an open source tool to easily create ssh tunnels

#33

Earlier quoted context omitted.

> It however proactively renders the characters you type before it receives confirmation from the tty on the other end. Basically for those with experience of text terminals genrally: local echo.

I worked as a sysadm at at "large" (local scale) UNIX SysV installation back in the early 90s. Everything there connected via serial ports, remote offices got multiplexed over a 9600 baud connection. Back then we had local echo for the sometimes slow link, i.e. printing a spreadsheet converted to 3Mb PostScript, and still only 9600 baud in total. So i know what local echo is. It has nothing to do with prediction :) I…

You are privileged! It is a daily part of life in South Africa -- around 200ms to the EU and more for anywhere else. That kind of delay becomes extremely jarring when you are working on a VPS or doing anything, really. Local VPSs are expensive and just not on par with something like DO. I believe there's a great opportunity for opening up a DO-like service in JHB with VPS @ R70/mo.

We also never have enough players for the latest FPS games that require low latency :(

Re: Show HN: Mole – an open source tool to easily create ssh tunnels

#34

This is cool, but it's not very clear to me what is the benefit of using this over autossh. autossh detects and restarts broken tunnels and uses aliases and tidy config files: https://www.everythingcli.org/ssh-tunnelling-for-fun-and-pro...

But does your autossh have a beautiful web page? Didn't think so!

Re: Show HN: Mole – an open source tool to easily create ssh tunnels

#36
post #6
post #2

This is a fantastic tool! I've always had to reference a markdown file with SSH tunnel syntax whenever I wanted to create one. I can see myself using this quite a bit in the future.

Is the syntax difference really that interesting? It's mole -local 127.0.0.1:3306 -remote 127.0.0.1:3306 -server example@172.12.0.100 vs ssh -L 3306:127.0.0.1:3306 example@172.12.0.100 With the extra installation of mole on top.

This whole thread makes me think of Alan Cooper, and how he bashes developers in The Inmates Are Running the Asylum basically as people out of touch with the rest of humanity in that we got used to rudimentary tools and our love for them and maybe the time and pain spent learning them makes us victim blame users, not that your comment is doing that, but maybe we do that unconsciously. I was going to comment on the whole persona thing he started but it’s to early in the morning for such things

Re: Show HN: Mole – an open source tool to easily create ssh tunnels

#38

This is cool, but it's not very clear to me what is the benefit of using this over autossh. autossh detects and restarts broken tunnels and uses aliases and tidy config files: https://www.everythingcli.org/ssh-tunnelling-for-fun-and-pro...

Just syntax, I think. autossh was kind of a pain for me to set up and debug.

Re: Show HN: Mole – an open source tool to easily create ssh tunnels

#39
post #7

Here are the example commands, with the SSH equivalent. There's a small syntax difference, but otherwise I don't think this tool adds much. $ mole -local 127.0.0.1:3306 -remote 127.0.0.1:3306 -server example@172.12.0.100 $ ssh -L3306:127.0.0.1:3306 example@172.12.0.100 $ mole -v -local 127.0.0.1:8080 -remote 172.17.0.100:80 -server user@example.com:22 -key ~/.ssh/id_rsa $ ssh -v -L8080:172.17.0.100:80 -p 22 -I ~/.ssh…

> You now bypass any corporate HTTP proxy. Assuming that said corporation isn’t blocking random ssh connections with their fancy NGFW. ;)

Yeah, this hits close to home. Our corp firewall blocks anything other than 80 and 443, and MITM's 443.

Re: Show HN: Mole – an open source tool to easily create ssh tunnels

#40
post #25

Earlier quoted context omitted.

If it's easy for you to remember ssh syntax, then for you ssh is the better tool. As far as I'm concerned, I never remember the different syntax between -L, -R, -D, etc. Always have to read a doc somewhere. In the same topic, do you remember the syntax of tar? I don't. https://www.xkcd.com/1168/

I use tar daily, so yes, i remember the syntax :) copy files from a to b: (cd /src && tar cf - .) | (cd /dest && tar xf -) operations are easy :(c)reate, e(x)tract, (t)est options the same: (f)ile, (v)erbose, g(z)ip compression. the only illogical ones is bzip2 compression and xz compression with -j and -J I think i can remember cpio syntax as well, though i haven't used that i a decade, but did use it quite often in…

Well, it turns out we have different expectations regarding those tools.

My brain chooses to store other things in life.

Post reply on HN