Default Linux Users
In the new Instances the following default users are created :
| OS | 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 the 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 could be accessed directly via ssh by 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 then it is not directly accessible from internet and requires an additional instance deployed in the project that acts as a gateway to the private instance.
This "gateway" instance need to be connected to both private and external networks so that it can be used to access the target private instance.
it is possible to follow one of these options to get access to the VM :
- setup the "private key" to the proxy instance under the user's "~/.ssh/ " folder and then connect :
ssh -J <default username>@<gateway instance external ip> <default username>@<target instance private ip>
- use a "ssh-agent" for managing the keys authentication and forward the authentication agent connection (option -A) :
ssh -A -J <default username>@<gateway instance external ip> <default username>@<target instance private ip>
Console Access
The Openstack Horizon Dashboard offers the possibility to connect to the instance from a web console.
The console can be access by clicking in the target Instance, and from the Instance page select the Console tab.
