Create local login for Linux VMs

From DataTenant Knowledgebase
Revision as of 17:04, 28 February 2025 by Dtadmin (talk | contribs)
Jump to navigation Jump to search

This article will help you inject a local username and password into Linux instances at boot.

Some users prefer to use private keys to grant themselves access to their virtual machines, but some users prefer to simply define a username and password that will allow them to login directly to the console or easily over SSH. With most Linux based operating systems, the process to do this is easy.

Input a Cloud config

During instance creation, there is a block called the 'Cloud config'. This is where special commands can be input that will be executed automatically during first boot. This text block

@echo off
echo.
echo Hello world
echo.
pause