AWS ParallelCluster
AWS ParallelCluster User Guide

pcluster ssh

Runs an ssh command with the user name and IP address of the cluster pre-populated. Arbitrary arguments are appended to the end of the ssh command. This command can be customized in the aliases section of the configuration file.

pcluster ssh [ -h ] [ -d ] cluster_name

Positional Arguments

cluster_name

Specifies the name of the cluster to connect to.

Named Arguments

-h, --help

Shows the help text for the specified command.

-d, --dryrun

Prints the command that would be run and exits.

Defaults to False.

Example:

$ pcluster ssh -d mycluster -i ~/.ssh/id_rsa

Returns 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

The ssh command is defined in the global configuration file under the [aliases] section. It can be customized as follows.

[ aliases ] ssh = ssh {CFN_USER}@{MASTER_IP} {ARGS}

Variables substituted:

CFN_USER

The user name for the base_os that is selected.

MASTER_IP

The IP address of the master node.

ARGS

Optional arguments to pass to the ssh command.