[zeromq-dev] ZMQ over SSH via PHP

Brian Smith brian at linuxfood.net
Sun Apr 15 01:54:23 CEST 2012


I use ZeroMQ over SSH in a couple of projects. While I don't do it through
(and there is no "cookbook", that I'm aware of), I can tell you that it is
pretty easy
to accomplish using the regular SSH command line. Hopefully, you'll be able
to adapt
the below to the particulars of the PHP-SSH wrapper.

Host A:
0MQ process bound to

Host B:
SSH tunnel opened with: ssh -L127.0.0.1:9705:localhost:9605 HostB -N
0MQ process connects to /* this could easily be PHP app */


On Sat, Apr 14, 2012 at 4:28 PM, <zmq-list at zerocue.com> wrote:

> I’m new to the zeromq project and am excited to use it for a new project.
> I’m looking to find a way to provide for encrypted communication and was
> considering SSH.  Is there a cookbook method for doing this through PHP?**
> **
> ** **
> I’ve tried using the ->connect() with a standard PHP SSH wrapper such as:
> “ssh2.tunnel://user@host:22/” but I get protocol not
> supported.  I expect this is because the php extension to zmq tells zmq to
> open the socket its-self which would be bypassing the PHP standard streams,
> is that right?****
> ** **
> Is there any known way to accomplish secure connections?  I can’t rely on
> “local security” as we have a trust-nothing approach to our infrastructure,
> even internally.****
> ** **
> Thanks,****
> ** **
> -Clint****
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120414/3345d037/attachment.htm>

More information about the zeromq-dev mailing list