Skip to content

Latest commit

 

History

History
executable file
·
31 lines (18 loc) · 1.87 KB

manually-get-ssh-key.md

File metadata and controls

executable file
·
31 lines (18 loc) · 1.87 KB

Manually Get SSH Key

If you've deployed mock-spacestation via the Azure Portal or the Azure CLI and don't have the tools available to run getConnections.sh and don't wish to use our development environment, you can manually retrieve the private key for SSH'ing into the Mock Groundstation and Mock Spacestation that is seeded in the KeyVault that was created as part of the deployment by granting yourself a Secrets Management Access Policy.

  1. Find the Resource Group you deployed into and select the KeyVault resource:

    The KeyVault resource deployed into the mock-spacestation Resource Group

  2. In that KeyVault resource, assign yourself the Secret Management policy as documented here:

    https://docs.microsoft.com/en-us/azure/key-vault/general/assign-access-policy-portal

  3. Navigate to 'Secrets' to retrieve the SSH private key and save it to a local file

    The sshPrivateKey secret in the KeyVault

  4. Use your preferred SSH client to connect to the virtual machines with azureuser and the FQDN for the machine:

    The FQDN for the Virtual Machine

  5. Use the SSH private key you downloaded to SSH to the machine:

    ssh -i ./thePrivateKeyDownloadedFromKeyVault azureuser@mockspacestation-abc123def456.australiaeast.cloudapp.azure.com
  6. Some links to popular SSH clients: