Skip to content

ssh

Run a command on a remote server using ssh

Description

Run a command on a remote server using ssh

Synopsis

ssh
    [--site <site>]
    <server>
    <command>
    [--insecure_ignore_host_key]

Arguments

site - (string)

     Site to run the command
     Example: --site "site-1"
     Default: input.site      Attributes: optional

server - (string)

     server to run the command on
     Example: "server1"
     Default: _None_      Attributes: required

command - (string)

     command to run
     Example: "ls -l"
     Default: _None_      Attributes: required

insecure_ignore_host_key - (bool)

     ignore host key verification (insecure)
     Example: --insecure_ignore_host_key
     Default: _None_      Attributes: optional

Examples

Input:

! ssh "host1" "ls -a"
Output:
.
..
.bash_history
.bashrc
.cache
.profile

Access Control

To use this command, you need access to the following:

Field Value
Action "create"
Service Type "ssh"
Service Instance
Namespace
Object Type "command"
Object ID

Please see Access Control for details.