How to connect to a Comput Cluster via SSH

PeterT 0 Reputation points


I have created a compute cluster under Ml Studio with activated SSH (user/password query).

Unfortunately, I can't find a way to connect to it, because I don't know the IP address and it's not shown to me via "az resource show --ids...".

Does anyone know how this works? Do I have to pay attention to anything when setting up the workspaces?

I am already a little desperate, hope someone can help.


Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,220 questions
{count} votes

1 answer

Sort by: Most helpful
  1. dupammi 1,210 Reputation points Microsoft Vendor

    Hi @PeterT ,

    Thank you for using the Microsoft Q&A.

    I understand that you are having trouble connecting to your compute cluster in Azure Machine Learning Studio via SSH. I can help you with that.

    To connect to your compute cluster, you need to know the IP address of the virtual machine (VM) that is running the cluster. However, you mentioned that you are unable to find the IP address using the "az resource show --ids..." command.

    Here are the steps you can follow to connect to your compute cluster:

    1. Create your Compute Cluster with nodes > 0 and set your ADMIN Password during the creation.
    2. Once the "Compute Cluster" is ready, Go to the Compute > Computer clusters > Select the compute cluster > Nodes. In the nodes, Copy the "Connection string" (eg : ssh azureuser@<PUBLIC_IP> -p 50000 or with 50001)
    3. Open the terminal and paste the below command and hit ENTER.

    az login

    1. You need to follow the steps of authentication by clicking on the Microsoft auth link and give the password code displayed on the screen.
    2. Then paste the command you got from Step 2.
    3. You will be prompted for password.
    4. Enter the password you SET in Step 1 (It doesn't show the password on screen, as you type. Just type your password and hit ENTER).

    Finally, you should be able to see the below screen.

    User's image

    Hope this helps. Do let us know if you any further queries.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments