[rabbitmq-discuss] Erlang resh - shell process terminated.

Edwin Fine rabbitmq-discuss_efine at usa.net
Sat Sep 13 18:08:34 BST 2008


That should have read, the suggestion may be of *use* anyway :)

On Sat, Sep 13, 2008 at 1:07 PM, Edwin Fine
<rabbitmq-discuss_efine at usa.net>wrote:

> May I make a suggestion?
>
> Putting the cookie on the command line is insecure from the point of view
> that anyone that can do a ps on the system can see the cookie, and connect
> to your node and do evil things. If you're just a home user, that's probably
> not a problem, but the suggestion may be of user anyway. What I do is create
> a user per application that uses RabbitMQ, and copy the
> $RABBIT_DIR/.erlang.cookie file from RabbitMQ into the user's home
> directory. Then, if I log on as that user, I never have to worry about the
> cookie or about the security aspect and just type in erl -sname test$$
> -remsh rabbit at localhost
>
> Regards,
> Edwin Fine
>
>
> On Sat, Sep 13, 2008 at 10:27 AM, newps <fingermark at gmail.com> wrote:
>
>>
>> If anyone else has this problem:
>>
>> cat /var/lib/rabbitmq/.erlang.cookie
>> SOMECOOKIE
>>
>> erl -sname foo -setcookie SOMECOOKIE  -remsh rabbit at srabbitmq
>>
>>
>> newps wrote:
>> >
>> > I had a typo (resh should be remsh):
>> >
>> > erl -sname foo -remsh rabbit at srabbitmq
>> > *** ERROR:  Shell process terminated! (^G to start new job) ***
>> >
>> >
>> > newps wrote:
>> >>
>> >> I'm trying to connect to the RabbitMQ Erlang node so that I may run
>> some
>> >> of the rabbitmq_amqueue functions, but I cannot.  I'm using the
>> >> CohesiveFT Elastic Server, packaged with RabbitMQ.
>> >>
>> >> Note that I'm trying to connect to the Erlang node from the RabbitMQ
>> >> server.
>> >>
>> >> cat /etc/hosts
>> >> 127.0.0.1 srabbitmq
>> >>
>> >> sudo rabbitmqctl status
>> >> Status of node rabbit at srabbitmq ...
>> >> [{running_applications,[{rabbit, "RabbitMQ", "1.2.0"}, ...
>> >>
>> >> erl -sname foo -resh rabbit at srabbitmq
>> >> *** ERROR:  Shell process terminated! (^G to start new job) ***
>> >>
>> >> erl -sname foo
>> >> (foo at srabbitmq)2> net_adm:ping(rabbit at srabbitmq).
>> >> pang
>> >>
>> >>
>> >> What am doing wrong?
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Erlang-resh---shell-process-terminated.-tp19470869p19471099.html
>> Sent from the RabbitMQ mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20080913/e511ad26/attachment.htm 


More information about the rabbitmq-discuss mailing list