[zeromq-dev] ZMQ over SSH via PHP

MinRK benjaminrk at gmail.com
Sun Apr 15 02:44:29 CEST 2012


On Sat, Apr 14, 2012 at 16:54, Brian Smith <brian at linuxfood.net> wrote:

> Hi,
>
> I use ZeroMQ over SSH in a couple of projects. While I don't do it through
> PHP
> (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 127.0.0.1:9605
>
> Host B:
> SSH tunnel opened with: ssh -L127.0.0.1:9705:localhost:9605 HostB -N
> 0MQ process connects to 127.0.0.1:9705 /* this could easily be PHP app */
>

pyzmq has a simple tunnel_connection function for doing exactly this in
simple cases, and I imagine you should be able to do something similar from
any language.


>
> -B
>
> 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/127.0.0.1:5000” 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
>>
>>
>
> _______________________________________________
> 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/2e67cd67/attachment.htm>


More information about the zeromq-dev mailing list