Introduction
One of the key things required when developing with Magento is SSH access. Fortunatley MDOQ allows you to configure keys for all users in your team. As well as add one off ones for third parties if required.
If you don't have an ssh key checkout generating an ssh key
Setup default SSH Keys
- Select your live connector / production instance
- Navigate to "Settings" > "SSH"
- Click to "Enable" ssh
- You can then add as many ssh keys are you want under "Identities"
Each identity requires a name and the public part of your ssh key - Click "Save"
That's it, all future instance will have these keys added.
Setup SSH Keys For An Existing Instance
If you already have an instance and you want to add ssh keys to there are a couple of options.
Using Keys From The Parent Instance
If you already created the instance before configuring SSH keys on the parent instance, you can still pull them into your instance.
- Select your instance.
- Check "SSH"
- Click "Proceed"
MDOQ will then recreate all the need components to add the configured SSH keys to the instance.
Specific Keys For An Instance
If you would like to add ssh keys just for a single instance. Maybe to give a third party access to only that instance.
- Select the instance
- Select "Settings" > "SSH"
- Uncheck "Inherit from live" for identities.
- You can then update the ssh keys as you wish.
- When finished click "Save".
MDOQ will recognise that SSH settings have changed and recreate all the need components to add the configured SSH keys to the instance.
Keys For Production
This works the same as specifying keys for a specific instance, though you will need to manually sync the SSH component after adding your keys as MDOQ won't automatically sync components for production.
SSH Access
Once you have set up keys and they are applied to your instance you can then connect to it. There are two options for this.
Web SSh
- Select the instance
- Select "Support"
- Select "Web SSH"
- Use the "choose file" input to select your private key.
- Click connect.
CLI SSH
- Select the instance
- Select "Settings" > "SSH"
- At the bottom of the SSH settings you will see two fields "Host" and "Username"
The host field will be in the format HOST:PORT
This will allow you to connect with:ssh -p PORT -i PATH_TO_PRIVATE_KEY USERSER@HOST
An example of this may be:ssh -p 11111 -i ~/.ssh/id_rsa magento@www-mysite-com-1111.02.mdoq.io