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.
-
Find the compute in your workspace resources:
- On the left, select Compute.
- Use the tabs at the top to select Compute instance or Compute cluster to find your machine.
-
Select the compute name in the list of resources.
-
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.":::
-
-
Copy the connection string.
-
For Windows, open PowerShell or a command prompt:
-
Go into the directory or folder where your key is stored
-
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)
-
-
For Linux users, follow the steps from Create and use an SSH key pair for Linux VMs in Azure
-
For SCP use:
scp -i key.pem -P {port} {fileToCopyFromLocal } azureuser@yourComputeInstancePublicIP:~/{destination}