<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">&lt;<a href="mailto:rabbitmq-discuss_efine@usa.net">rabbitmq-discuss_efine@usa.net</a>&gt;</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&#39;re just a home user, that&#39;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&#39;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">&lt;<a href="mailto:fingermark@gmail.com" target="_blank">fingermark@gmail.com</a>&gt;</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 &nbsp;-remsh rabbit@srabbitmq<br>
<div><br>
<br>
newps wrote:<br>
&gt;<br>
&gt; I had a typo (resh should be remsh):<br>
&gt;<br>
&gt; erl -sname foo -remsh rabbit@srabbitmq<br>
&gt; *** ERROR: &nbsp;Shell process terminated! (^G to start new job) ***<br>
&gt;<br>
&gt;<br>
&gt; newps wrote:<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m trying to connect to the RabbitMQ Erlang node so that I may run some<br>
&gt;&gt; of the rabbitmq_amqueue functions, but I cannot. &nbsp;I&#39;m using the<br>
&gt;&gt; CohesiveFT Elastic Server, packaged with RabbitMQ.<br>
&gt;&gt;<br>
&gt;&gt; Note that I&#39;m trying to connect to the Erlang node from the RabbitMQ<br>
&gt;&gt; server.<br>
&gt;&gt;<br>
&gt;&gt; cat /etc/hosts<br>
&gt;&gt; <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> srabbitmq<br>
&gt;&gt;<br>
&gt;&gt; sudo rabbitmqctl status<br>
&gt;&gt; Status of node rabbit@srabbitmq ...<br>
&gt;&gt; [{running_applications,[{rabbit, &quot;RabbitMQ&quot;, &quot;1.2.0&quot;}, ...<br>
&gt;&gt;<br>
&gt;&gt; erl -sname foo -resh rabbit@srabbitmq<br>
&gt;&gt; *** ERROR: &nbsp;Shell process terminated! (^G to start new job) ***<br>
&gt;&gt;<br>
&gt;&gt; erl -sname foo<br>
&gt;&gt; (foo@srabbitmq)2&gt; net_adm:ping(rabbit@srabbitmq).<br>
&gt;&gt; pang<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; What am doing wrong?<br>
&gt;&gt;<br>
&gt;<br>
&gt;<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>