From 3a5abf2d29292f56969e9c90b5698e71d456e2f8 Mon Sep 17 00:00:00 2001 From: Richard Carlsson Date: Tue, 17 Apr 2018 20:12:17 +0200 Subject: Use ssh as the default remote shell --- lib/stdlib/doc/src/slave.xml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lib/stdlib/doc/src/slave.xml') diff --git a/lib/stdlib/doc/src/slave.xml b/lib/stdlib/doc/src/slave.xml index e53ec8231b..88902b364a 100644 --- a/lib/stdlib/doc/src/slave.xml +++ b/lib/stdlib/doc/src/slave.xml @@ -39,17 +39,17 @@ done through the master.

Slave nodes on other hosts than the current one are started with - the rsh program. The user must be allowed to rsh to + the ssh program. The user must be allowed to ssh to the remote hosts without being prompted for a password. This can - be arranged in a number of ways (for details, see the rsh + be arranged in a number of ways (for details, see the ssh documentation). A slave node started on the same host as the master inherits certain environment values from the master, such as the current directory and the environment variables. For what can be assumed about the environment when a slave is started - on another host, see the documentation for the rsh + on another host, see the documentation for the ssh program.

-

An alternative to the rsh program can be specified on +

An alternative to the ssh program can be specified on the command line to erl(1) as follows:

@@ -166,7 +166,9 @@ slave:start(H, Name, Arg). no_rsh -

There is no rsh program on the computer.

+

No remote shell program was found on the computer. Note + that ssh is used by default, but this can be overridden + with the -rsh flag.

{already_running, Node} -- cgit v1.2.3 From e11502856586ba5c6d1468817e43a0bfcf6c7569 Mon Sep 17 00:00:00 2001 From: Richard Carlsson Date: Tue, 17 Apr 2018 21:34:08 +0200 Subject: Document the restrictions on the -rsh command --- lib/stdlib/doc/src/slave.xml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/stdlib/doc/src/slave.xml') diff --git a/lib/stdlib/doc/src/slave.xml b/lib/stdlib/doc/src/slave.xml index 88902b364a..de9ec8669b 100644 --- a/lib/stdlib/doc/src/slave.xml +++ b/lib/stdlib/doc/src/slave.xml @@ -56,6 +56,13 @@
 -rsh Program
+

Note that the command specified with the -rsh flag is + treated as a file name which may contain spaces. It is thus not + possible to include any command line options. The remote node will + be launched as "$RSH" "$REMOTE_HOSTNAME" erl -detached -noinput + ..., so the + erl command must be found in the path on the remote host.

+

The slave node is to use the same file system at the master. At least, Erlang/OTP is to be installed in the same place on both computers and the same version of Erlang is to be used.

-- cgit v1.2.3