[Erlang危机](4.2)Remsh

原创文章,转载请注明出处:server非业余研究http://blog.csdn.net/erlib 作者Sunface
联系邮箱:cto@188.com


Remsh

There’s a mechanism entirely similar to the one available through the JCL mode, although invoked in a different manner. The entire JCL mode sequence can by bypassed by starting the shell as follows for long names:

 另一种相似于JCL模式的机制。仅仅是两者的激活方式有所不同。JCL模式连接远程节点的操作序列能够使用以下这个加了remsh參数的启动命令直接绕过。


---------------------------------------------------------------------------------------
erl -name local@domain.name -remsh remote@domain.name
---------------------------------------------------------------------------------------
And as follows for short names:

 也能够使用短命名:

---------------------------------------------------------------------------------------
erl -sname local@domain -remsh remote@domain
---------------------------------------------------------------------------------------

All other Erlang arguments (such as -hidden and -setcookie $COOKIE) are also valid.
The underlying mechanisms are the same as when using JCL mode, but the initial shell is started remotely instead of locally (JCL is still local). ˆG remains the safest way to exit the remote shell.

 其他的Erlang參数(比方:-hidden -setcookie $COOKIE)在这里也都是能够使用的。
 Remsh命令的底层机制和使用JCL模式是一样的,但启动后的节点是远程的,而JCL启动的节点是本地的。与此同一时候Ctrl+G仍然是退出远程shell的最安全方式。

posted @ 2017-06-12 19:55  wzzkaifa  阅读(278)  评论(0编辑  收藏  举报