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.
| The access to the Instances on CCI is supported only via ssh keys authentication. Password authentication is disabled. |
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> |
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 :
ssh -J <default username>@<gateway instance external ip> <default username>@<target instance private ip> |
ssh -A -J <default username>@<gateway instance external ip> <default username>@<target instance private ip> |
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.
