User Accounts
Learn more about provisioning user accounts on Virtual Servers.
User accounts can be provisioned onto Virtual Servers in a few different ways. You can add as many user accounts as you like to your Virtual Servers.
Important
Users created on Virtual Servers are automatically given administrative privileges (
sudo
access).Cloud UI
CLI
Terraform
The first user account created will be used as the first administrative user account on the Virtual Server, and can be configured to use either an SSH public key or a password for authentication.
A username and password is presented as the default - to switch to using an SSH key, click "Use SSH" beside the password field.

Additional user accounts may either be added using the UI, or they may be provisioned in the YAML manifest editor under the
users
block:
This
users
block is a YAML list, in which usernames and passwords or SSH public keys can be included. Multiple users in this configuration may look something like this example:users:
- username: 'jill'
password: '93jrwnffdk'
- username: 'jack'
sshpublickey: AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSU
GPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3
Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XA
t3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/En
mZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbx
NrRFi9wrf+M7Q==
User accounts are created using the Kubernetes CLI by adding their information to the
users
stanza of the spec
. users:
- username: SET YOUR USERNAME HERE
password: SET YOUR PASSWORD HERE
To use key-based authentication, replace and uncomment SSH-RSA below with your public SSH key
# sshpublickey: |
ssh-rsa AAAAB3NzaC1yc2EAAAA ... user@hostname
The Virtual Server's user account options are configured as variables passed into the Virtual Server Terraform module.
The table below describes all available configuration options for user accounts on Virtual Servers.
Variable name | Variable type | Description | Default value |
---|---|---|---|
vs_username | String | The name of the user to create. | linux |
vs_password | String | User-defined password for the user account.
⚠ vs_generate_password must be set to false . | ubuntu2004-docker-master-20210601-ord1 (The Ubuntu 20.04 image stored in the Chicago region.) |
vs_generate_password | Boolean | Whether or not to randomly generate a user password for the user account. | true |
Example in plain text:
variable "vs_username" {
description = "Virtual Server username"
}
variable "vs_password" {
type = string
default = "null"
description = "User provided password (vs_generate_password must be set to false)"
}
variable "vs_generate_password" {
type = bool
default = true
description = "Generate password"
Last modified 4mo ago