Edge Computing VM's are provisioned from images which are configured with a default user. No passwords are set on creation, so you will need to ensure you Generate SSH Keys and have added them to your workload during workload creation before attempting to connect to your instance.
The default user is based on the Operating System image you have used. You can find the default user in the table below:
|Ubuntu 18.04 LTS||ubuntu|
The default users have sudo permissions enabled.
When connecting via SSH, you will need to use the username listed in the table above. For example:
Once your instance has deployed, you can add users to your instance using the
adduser command as you would on any standard Linux distribution.
- For example, to add the user john:
sudo adduser john
- You can then set a password for the user:
sudo passwd john
- If desired, add the user to the sudo group:
sudo usermod -a -G sudo john
sudo usermod -a -G wheel john
Since password logins are disabled, you will have to add a public SSH key for this new user. To enforce user permissions we will add the key to the new user's profile, and not the root user.
On the virtual machine:
sudo su - john
And edit the authorized keys file for the new user and append a public rsa key.
Or on a remote machine with root VM access:
Congratulations, you have now added an additional user to your VM and have the ability to modify permissions and access.
If you have any additional questions or concerns, feel free to reach out to StackPath Support via hi@stackPath.com or over our 24/7 live chat.