Connect to an instance
Access an instance from outside the cloud by using SSH or WinRM, or connect directly to the VNC console for debugging when the network connection fails. Security group rules must allow the protocol you use.
To run openstack client commands on the cloud, you must specify the name of the cloud detailed in your clouds.yaml file. You can specify the name of the cloud by using one of the following methods:
- Use the
--os-cloudoption with each command, for example:$ openstack flavor list --os-cloud <cloud_name>Use this option if you access more than one cloud.
- Create an environment variable for the cloud name in your
bashrcfile:`export OS_CLOUD=<cloud_name>`
Access an instance console Copy linkLink copied!
Connect directly to the VNC console for an instance by entering the console URL in a browser.
Before you begin Copy linkLink copied!
- The administrator has created a project for you and they have provided you with a
clouds.yamlfile for you to access the cloud. - You have installed the
python-openstackclientpackage.
Procedure Copy linkLink copied!
Log in to an instance Copy linkLink copied!
Log in to a public instance remotely by using SSH with the key pair and floating IP address that you assigned to the instance.
Before you begin Copy linkLink copied!
- You have the key pair certificate for the instance. The certificate is downloaded when the key pair is created. If you did not create the key pair yourself, ask your administrator.
- The instance is configured as a public instance. For more information on the requirements of a public instance, see Providing public access to an instance.
- You have a cloud user account.
- The administrator has created a project for you and they have provided you with a
clouds.yamlfile for you to access the cloud. - You have installed the
python-openstackclientpackage.