Guide: Adding default user

content:

Adding a default user

To access the instance as a specific user, you must first configure your user settings.

Remember that the lack of such configuration after creating the instance will result in the lack of user to whom you can log in.

Before configuring user settings, you must first add your public key if you plan that your instance will have a public address attached and you want to access it from external via SSH.

To add a public key go to Infrastructure -> Keys & Certs.

To add a new key, press the "+ADD" button.

After pressing the button a window will appear:

  • NAME - key name, it is not associated with the username and can be any,
  • PUBLIC KEY - public key, you can copy the key and paste into this field or search for the key file via the "Browse" button.

After entering this data, you can save the key by pressing the "SAVE CHANGES" button.

After creating the key it should be visible in the key menu.

With the public key added, you can proceed to configure user settings.

To access these settings, press on your username in the upper right corner and select "USER SETTINGS".

In the "Linux Settings" section you should complete:

  • Username - username to login to the instance,
  • Password - password to login to the instance,
  • Confirm - re-enter the password,
  • SSH Key - select the previously added public key that will be assigned to this user.

After entering all the data, press the "SAVE" button.

The SSH key is not required to log in to the instance via the console from the Morpheus panel, but it is worth adding and assigning the key to the user if you need to access the instance via SSH.

The following settings will be applied to the instance if the user (in this case "Wekeouser") has created a new instance.

Other users of this tenant, if they do not have a login, password and private key to the public key that was assigned to this user, they  will not be able to access the instance created by this user.

If more than one user has access to the tenant, it is worth considering configuring the settings that will be global for the entire tenant.

A new "tenant" key has been added to configure these settings.

To configure such settings, go to Administration -> Provisioning.

In the "Cloud-Init Settings" section you should complete:

  • Username - global username to which every tenant user should have access,
  • Password - password to the global user,
  • Key Pair - public key for global user.

After entering all the data, press the "SAVE" button.

When configuring such settings, remember to share the entered data with other users of your tenant.

The above settings will be applied to each new instance, regardless of which user created it in the tenant.

Remember that any changes to both settings after the instance is created will not update them in existing instances.

New/Changed settings will be applied to new instances. They will not be updated on existing instances.