How to connect to a Comput Cluster via SSH

PeterT 0 Reputation points
2023-10-26T08:48:06.52+00:00

Hello,

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.

Peter

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

2 answers

Sort by: Most helpful
  1. dupammi 8,615 Reputation points Microsoft External Staff
    2023-10-26T12:41:22.07+00:00

    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

  2. Umesh Narayanan 0 Reputation points
    2024-10-08T11:10:36.2866667+00:00

    Hi @dupammi ,

    i followed above instruction as you suggested, but i am unable to see the connection string/ip in the node section. i created with max of 1 node.

    Attaching the screenshot

    User's image

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.