Simple ways to test ssh tunnel

Damien Miller djm at mindrot.org
Fri Oct 5 21:26:15 AEST 2018


On Fri, 5 Oct 2018, Darren Tucker wrote:

> On 5 October 2018 at 19:23, Mathieu Westphal
> <mathieu.westphal at kitware.com> wrote:
> [...]
> > ssh -L 8080:localhost:11111 user at remote
> >
> > What command could I then use to use this tunnel as simply as possible,
> > either on the client, the server or both.
> 
> On the client, "telnet localhost 8080".  If it connects, depending on
> what's on the other end either you'll get a banner or it'll wait for
> the client to send something.  If it speaks HTTP. you can type
> something like "GET /" and it'll probably give either a page or an
> error message.

You can also use netcat instead of telnet, or perhaps "openssl s_client"
if your endpoint requires TLS.

-d


More information about the openssh-unix-dev mailing list