Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.62 KB

machine-learning-ssh-access.md

File metadata and controls

34 lines (25 loc) · 1.62 KB
author ms.service ms.topic ms.date ms.author
sdgilley
machine-learning
include
08/05/2022
sgilley

After you create a compute with SSH access enabled, use these steps for access.

  1. Find the compute in your workspace resources:

    1. On the left, select Compute.
    2. Use the tabs at the top to select Compute instance or Compute cluster to find your machine.
  2. Select the compute name in the list of resources.

  3. Find the connection string:

    • For a compute instance, select Connect at the top of the Details section.

      :::image type="content" source="../media/how-to-create-attach-studio/details.png" alt-text="Screenshot that shows connect tool at the top of the Details page.":::

    • For a compute cluster, select Nodes at the top, then select the Connection string in the table for your node. :::image type="content" source="../media/how-to-create-attach-studio/compute-nodes.png" alt-text="Screenshot that shows connection string for a node in a compute cluster.":::

  4. Copy the connection string.

  5. For Windows, open PowerShell or a command prompt:

    1. Go into the directory or folder where your key is stored

    2. Add the -i flag to the connection string to locate the private key and point to where it is stored:

      ssh -i <keyname.pem> azureuser@... (rest of connection string)

  6. For Linux users, follow the steps from Create and use an SSH key pair for Linux VMs in Azure

  7. For SCP use:

    scp -i key.pem -P {port} {fileToCopyFromLocal } azureuser@yourComputeInstancePublicIP:~/{destination}