在Azure HDInsight的边缘节点上使用ssh(ssh on edge-node for azure HDInsight)

我尝试使用边缘节点部署HDInsight群集。 我使用https://github.com/Azure/azure-quickstart-templates/blob/master/101-hdinsight-linux-with-edge-node/azuredeploy.json进行部署。

部署完成后,我使用以下命令尝试了ssh:

ssh sshuser@new-edgenode.myclustertest-ssh.azurehdinsight.net:22

[myclustertest是集群的名称]。

它给出了以下错误:

ssh: Could not resolve hostname new-edgenode.myclustertest-ssh.azurehdinsight.net:22: Name or service not known

我是否需要向azuredeploy.json添加一些内容以启用ssh访问?

看着https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-linux-use-ssh-unix我以为

<edgenodename>.<clustername>-ssh.azurehdinsight.net

默认情况下启用外部访问。

I tried deploying a HDInsight cluster with an edge node. I used https://github.com/Azure/azure-quickstart-templates/blob/master/101-hdinsight-linux-with-edge-node/azuredeploy.json for deployment.

After deployment is complete I tried ssh using following command:

ssh sshuser@new-edgenode.myclustertest-ssh.azurehdinsight.net:22

[myclustertest is the name of the cluster].

It gives following error:

ssh: Could not resolve hostname new-edgenode.myclustertest-ssh.azurehdinsight.net:22: Name or service not known

Do I need to add something to the azuredeploy.json to enable ssh access?

Looking at the https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-linux-use-ssh-unix I thought that

<edgenodename>.<clustername>-ssh.azurehdinsight.net

is enabled by default for external access.

最满意答案

问题出现在ssh命令中。

我使用了azure门户网站提供的ssh命令,希望它可以无缝工作。 我不得不从命令中删除:22以使其工作。

修改后的命令如下所示:

ssh sshuser@new-edgenode.myclustertest-ssh.azurehdinsight.net

Problem was in the ssh command.

I used the ssh command supplied from azure portal hoping that it would work seamlessly. I had to remove :22 from the command to make it work.

Modified command looks like this:

ssh sshuser@new-edgenode.myclustertest-ssh.azurehdinsight.net

更多推荐