<div dir="ltr">That should have read, the suggestion may be of <b>use</b> anyway :)<br><br><div class="gmail_quote">On Sat, Sep 13, 2008 at 1:07 PM, Edwin Fine <span dir="ltr"><<a href="mailto:rabbitmq-discuss_efine@usa.net">rabbitmq-discuss_efine@usa.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">May I make a suggestion?<br><br>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@localhost<br>
<br>Regards,<br><font color="#888888">Edwin Fine</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Sat, Sep 13, 2008 at 10:27 AM, newps <span dir="ltr"><<a href="mailto:fingermark@gmail.com" target="_blank">fingermark@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
If anyone else has this problem:<br>
<br>
cat /var/lib/rabbitmq/.erlang.cookie<br>
SOMECOOKIE<br>
<br>
erl -sname foo -setcookie SOMECOOKIE -remsh rabbit@srabbitmq<br>
<div><br>
<br>
newps wrote:<br>
><br>
> I had a typo (resh should be remsh):<br>
><br>
> erl -sname foo -remsh rabbit@srabbitmq<br>
> *** ERROR: Shell process terminated! (^G to start new job) ***<br>
><br>
><br>
> newps wrote:<br>
>><br>
>> I'm trying to connect to the RabbitMQ Erlang node so that I may run some<br>
>> of the rabbitmq_amqueue functions, but I cannot. I'm using the<br>
>> CohesiveFT Elastic Server, packaged with RabbitMQ.<br>
>><br>
>> Note that I'm trying to connect to the Erlang node from the RabbitMQ<br>
>> server.<br>
>><br>
>> cat /etc/hosts<br>
>> <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> srabbitmq<br>
>><br>
>> sudo rabbitmqctl status<br>
>> Status of node rabbit@srabbitmq ...<br>
>> [{running_applications,[{rabbit, "RabbitMQ", "1.2.0"}, ...<br>
>><br>
>> erl -sname foo -resh rabbit@srabbitmq<br>
>> *** ERROR: Shell process terminated! (^G to start new job) ***<br>
>><br>
>> erl -sname foo<br>
>> (foo@srabbitmq)2> net_adm:ping(rabbit@srabbitmq).<br>
>> pang<br>
>><br>
>><br>
>> What am doing wrong?<br>
>><br>
><br>
><br>
<br>
--<br>
</div>View this message in context: <a href="http://www.nabble.com/Erlang-resh---shell-process-terminated.-tp19470869p19471099.html" target="_blank">http://www.nabble.com/Erlang-resh---shell-process-terminated.-tp19470869p19471099.html</a><br>
<div><div></div><div>Sent from the RabbitMQ mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>