Default Linux Users
In the new Instances the following default users are created :
| OS | Default username |
|---|---|
| Rocky Linux | cloud-user |
| Ubuntu | ubuntu |
The ssh public key set during the Instance creation is added to the "~/.ssh/authorized_keys" file of this default user.
Remote SSH Access
SSH access with external IP
If the VM is deployed with access to the "external-internet" or with floating-ip attached then it can be accessed directly via ssh, using the assigned external IP.
ssh <default username>@<external IP>
SSH access with private IP
If the instance is deployed with just the private network attached, it is not directly accessible from the internet and requires an additional instance deployed in the project that acts as a gateway to the private instance.
This "gateway" or "bastion" instance needs to be connected to both private and external networks, so that it can access the target private instance.
Follow one of these options to connect to the VM :
- copy the "private key" to the gateway instance under your user's "~/.ssh/" folder and then connect by using the gateway instance as the jump host (option -J):
ssh -J <default username>@<gateway instance external ip> <default username>@<target instance private ip>
- use an "ssh-agent" to manage the authentication keys and forward the authentication agent connection (option -A), always through the jump host (option -J) :
ssh -A -J <default username>@<gateway instance external ip> <default username>@<target instance private ip>
Console Access
The Openstack Horizon Dashboard allows to connect to the instance from a web console.
The console is accessed by clicking on the target Instance, and then selecting the Console tab.
