pcluster ssh - Amazon ParallelCluster
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

pcluster ssh

运行预填充了集群用户名和 IP 地址的 ssh 命令。将任意参数附加到 ssh 命令行的结尾。

pcluster ssh [-h] --cluster-name CLUSTER_NAME [--debug] [--dryrun DRYRUN] [--region REGION]

命名的参数

-h, --help

显示 pcluster ssh 的帮助文本。

--cluster-name, -n CLUSTER_NAME

指定要连接到的集群的名称。

--debug

启用调试日志记录。

--dryrun DRYRUN

当为 true 时,打印将要运行的命令行并退出。(默认值为 false。)

--region, -r REGION

指定 Amazon Web Services 区域 要使用的。 Amazon Web Services 区域 必须使用AWS_DEFAULT_REGION环境变量、~/.aws/config文件[default]部分中的region设置或--region参数来指定。

例如:

$ pcluster ssh --cluster-name mycluster -i ~/.ssh/id_rsa

运行预填充了集群用户名和 IP 地址的 ssh 命令:

ssh ec2-user@1.1.1.1 -i ~/.ssh/id_rsa