Logging in to a new virtual machine (Advanced Console)

From DataTenant Knowledgebase
Revision as of 17:06, 16 May 2024 by Dtadmin (talk | contribs)
Jump to navigation Jump to search

This article will help you log into a new virtual machine using your personal key pair.

NOTE: This article does not apply to Virtual Appliances, which have a default username and password that can be used for console logins. To find these default username and passwords, please review our Virtual Appliance default username and passwords article.

Before creating your first virtual machine/instance, you would have needed to create a personal key pair by following our Create a keypair article. Done correctly, you would have ended up with a public key imported into the DataTenant cloud and two copies of your private key saved somewhere you can access. This article will guide you through using those two private keys to access an instance created using your public key.

Logging into a Windows virtual machine/instance

When you create a new virtual machine using a Windows image, your public key will be used to encrypt the Administrator password on the instance. You can use your private key to decrypt that password and then login using the Administrator account.

To begin, login to the DataTenant Cloud. Navigate to the Project, Compute, Instances menu.



In the 'Actions' menu for your instance, choose 'Retrieve Password'.



NOTE: It takes a minute or two after a Windows instance is fully created for the Administrator password to be set. If it the encrypted password is not available right away, wait a couple of minutes and check again. If it is still not available, please contact support@datatenant.com for further assistance.

In the 'Retrieve Instance Password' screen, copy and paste the contents of your OpenSSH key into the 'Private Key' text box, or locate the file you saved that contains your OpenSSH key. Click 'Decrypt Password'.



The decrypted password will appear in the 'Password' field. Copy it somewhere accessible and return to the 'Instances' menu.


Click on the Instance Name of the instance you want to login to. Click on the 'Console' tab to interact with the console session of the instance.



If your Windows instance prompts you to change the Administrator password, click 'Cancel'. Press the 'Send Ctrl Alt Delete' button in the top right hand corner of the console to bring you to the login screen. Enter the decrypted Administrator password to login.



NOTE: This process only works to retrieve the password initially set on the instance. Once you change the Administrator password, this process can no longer be used to retrieve the current Administrator password.

Logging into a Linux virtual machine/instance

When you create a new virtual machine/instance using a Linux image, your public key will be injected into the list of public keys that are allowed to login to the instance via SSH. You can then provide your private key to your SSH platform of choice to login to the instance.

To login, you will first need to have network access to the instance. Follow our Assign a floating IP article and review our Create or edit a security group article to ensure that:

  • Your instance has an IP address that you can reach, such as a public IP address or an IP address you can reach through a virtual firewall appliance.
  • Your instance is in a security group that allows SSH from your location.

Once that is completed, open your SSH application of choice. In this article we'll be using PuTTY, though most SSH applications will work.

In PuTTY, enter your Host Name in this format:

osname@IPADDRESS

For example, if connecting to an Ubuntu instance with a public IP address of 171.85.90.100, the PuTTY hostname would look like: ubuntu@171.85.95.100



Navigate to the 'Connections', 'SSH', 'Auth', 'Credentials' menu. Then, in the 'Private Key for authentication' field, choose 'Browse' and locate the .ppk file that contains your private key.



Click 'Open' to start the connect. If prompted to accept the instance's server host key, click 'Accept'. You should be prompted for the private key password you set on your private key. Enter the password to complete the login.