Configuring a VM for SSH access¶
To be accessible by SSH, a VM needs to be configured with a VLAN Network and the SSH public key data needs to be provided via cloudinit. We have documentation demonstrating this for Terraform deployments and for the Rancher GUI.
After the VM is configured, the IP address for the VM can be found in the Rancher
GUI or by using kubectl with a suitable kubeconfig file
and the name of the namespace where the VM is deployed. This command can be used
to list a table of virtual machines and their IP addresses; replace my-ns with
the appropriate namespace.
Note
Tenant networks provide IP addresses in the 10.134.X.X range. If your VM has
been assigned an address in a different range, it may not be using your tenant
network.
The VM's base image will typically be configured with a default username with SSH login enabled. The username varies depending on the base image of the VM.
| Image OS | Default SSH username |
|---|---|
| RHEL | cloud-user |
| Almalinux | almalinux |
| Ubuntu | ubuntu |
| Debian | debian |
VMs are not typically configured to allow SSH login to the root account.
Follow these instructions to access a VM with SSH.