Execute SSH Command
This page demonstrates how to execute a SSH command on a Cluster or Node managed by Avalanche-CLI
ALPHA WARNING: This command is currently in experimental mode. Proceed at your own risk.
Prerequisites
Before we begin, you will need to have a cluster managed by CLI, either a Fuji Cluster using AWS, a Fuji Cluster using GCP, or a Devnet,
SSH Warning
Note: An expected warning may be seen when executing the command on a given cluster for the first time:
Get SSH Connection Instructions for All Clusters
Just execute node ssh
:
Get the AvalancheGo PID for All Nodes in <clusterName>
Please note that commands via ssh
on cluster are executed sequentially by default. It's possible to run command on all nodes at the same time by using --parallel=true
flag
Get the AvalancheGo Configuration for All Nodes in <clusterName>
Executing Command on a Single Node
As we all know command can be executed on single node similar to the examples above To execute ssh command on a single node, use <nodeID>
, <IP>
or <instanceID>
instead of <clusterName>
as an argument. For example:
In this case --parallel=true
flag will be ignored
Opening SSH Shell for <nodeID>
If no command is provided, Avalanche-CLI will open an interactive session for the specified node. For example:
Please use exit
shell command or Ctrl+D to end this session.