0

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

starcluster sshmaster mycluster --port 22
4

1 回答 1

0

不可以。当使用“sshmaster”连接到 master 时,无法定义要使用的端口号。这是 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)
于 2015-03-30T13:27:59.743 回答