You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2022/08/30 11:26:28 UTC

[brooklyn-docs] 01/04: Update instructions regarding SSH and SCP executables

This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-docs.git

commit 16768abf033d89101f121dcf814fa3d90c20915d
Author: Mykola Mandra <my...@cloudsoft.io>
AuthorDate: Tue Aug 23 16:50:11 2022 +0100

    Update instructions regarding SSH and SCP executables
    
    Signed-off-by: Mykola Mandra <my...@cloudsoft.io>
---
 guide/locations/_clouds.md | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/guide/locations/_clouds.md b/guide/locations/_clouds.md
index b0e452e2..8c2e64ca 100644
--- a/guide/locations/_clouds.md
+++ b/guide/locations/_clouds.md
@@ -242,6 +242,35 @@ For more keys and more detail on the keys below, see
   to the OS `ssh` command instead, which can be useful if SSH activity is restricted in the environment where Brooklyn is running.
   Other tools can also be developed and installed.
 
+- When `org.apache.brooklyn.util.core.internal.ssh.cli.SshCliTool` is set to delegate the OS `ssh` command, then 
+  location can have a custom `ssh` and `scp` executable configured, via `sshExecutable` and `scpExecutable` properties:
+  ```yaml
+  brooklyn.catalog:
+    items:
+      - id: my-location
+        itemType: location
+        item:
+          type: byon
+          brooklyn.config:
+            sshToolClass: org.apache.brooklyn.util.core.internal.ssh.cli.SshCliTool
+            sshExecutable: my-ssh # SSH executable, default is 'ssh' if not set.
+            scpExecutable: my-scp # SCP executable, default is 'scp' if not set.
+            # The rest is omitted for brevity
+  ```
+  
+  With this, `my-ssh` can access to the following environment variables:
+    * `SSH_HOST` - the host of the remote OS.
+    * `SSH_USER` - the user of the remote OS.
+    * `SSH_PASSWORD` - the user password to access remote OS.
+    * `SSH_COMMAND_BODY` - the command to run on remote OS.
+    * `SSH_TEMP_KEY_FILE` - the identity key file to access remote OS.
+  
+  And `my-scp` can access to the following environment variables:
+    * `SCP_TEMP_KEY_FILE` - the identity key file to access remote OS.
+    * `SCP_PASSWORD` - the user password to access remote OS.
+    * `SCP_FROM` - the path of the local file to copy.
+    * `SCP_TO` - the path of the remote file destination, which includes user and host of the remote OS.
+
 Other low level parameters are available in specific contexts, as described in the JavaDoc for the relevant classes
 and in some cases in `BrooklynConfigKeys`.