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.
Default Users
The default user is based on the Operating System image you have used. You can find the default user in the table below:
Operating System | Username |
CentOS 7 | centos |
CentOS 7 - cPanel/WHM | centos |
CentOS 8 | centos |
Debian 10 Buster | debian |
Ubuntu 18.04 LTS | ubuntu |
Ubuntu 19.04 | 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:
ssh centos@[instance.ip]
ssh debian@[instance.ip]
ssh ubuntu@[instance.ip]
Adding Users
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:
Debian:
sudo usermod -a -G sudo john
Redhat:
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.
~/.ssh/authorized_keys
Or on a remote machine with root VM access:
ssh-copy-id john@vm_ip_address
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.