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.
-
Find the Resource Group you deployed into and select the KeyVault resource:
-
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
-
Navigate to 'Secrets' to retrieve the SSH private key and save it to a local file
-
Use your preferred SSH client to connect to the virtual machines with
azureuser
and the FQDN for the machine: -
Use the SSH private key you downloaded to SSH to the machine:
ssh -i ./thePrivateKeyDownloadedFromKeyVault azureuser@mockspacestation-abc123def456.australiaeast.cloudapp.azure.com
-
Some links to popular SSH clients: