指定starcluster sshmaster端口

时间:2015-03-27 13:57:39

标签: starcluster

使用starcluster时,是否可以在SSH连接到主节点时指定端口号?例如:

starcluster sshmaster mycluster --port 22

1 个答案:

答案 0 :(得分:0)

没有。当使用" sshmaster"连接到master时,无法定义要使用的端口号。这是" help"的输出。命令sshmaster。

%> starcluster sshmaster -h
StarCluster - (http://star.mit.edu/cluster) (v. 0.9999)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to starcluster@mit.edu

Usage: sshmaster [options] <cluster> [<remote-command>]

    SSH to a cluster's master node

    Example:

        $ sshmaster mycluster

    You can also execute commands without directly logging in:

        $ starcluster sshmaster mycluster 'cat /etc/hosts'

Options:
  -h, --help            show this help message and exit
  -u USER, --user=USER  login as USER (defaults to root)
  -X, --forward-x11     enable X11 forwarding
  -A, --forward-agent   enable authentication agent forwarding
  -t, --pseudo-tty      enable pseudo-tty allocation (for interactive commands
                    and screens)