pcluster ssh
Runs a ssh command with the cluster user name and IP address pre-populated. Arbitrary arguments are
appended to the end of the ssh command line.
pcluster ssh [-h] --cluster-nameCLUSTER_NAME[--debug] [--dryrunDRYRUN] [--regionREGION]
Named arguments
-h, --help-
Shows the help text for
pcluster ssh. --cluster-name, -nCLUSTER_NAME-
Specifies the name of the cluster to connect to.
--debug-
Enables debug logging.
--dryrunDRYRUN-
When
true, prints the command line that would be run and exits. (Defaults tofalse.) --region, -rREGION-
Specifies the AWS Region to use. The AWS Region must be specified, using the
AWS_DEFAULT_REGIONenvironment variable, theregionsetting in the[default]section of the~/.aws/configfile, or the--regionparameter.
Example:
$pcluster ssh --cluster-namemycluster-i ~/.ssh/id_rsa
Runs an ssh command with the user name and IP address of the cluster pre-populated:
ssh ec2-user@1.1.1.1 -i ~/.ssh/id_rsa