Create local login for Linux VMs: Difference between revisions

From DataTenant Knowledgebase
Jump to navigation Jump to search
(Created page with "test")
 
No edit summary
Line 1: Line 1:
test
<strong>This article will help you inject a local username and password into Linux instances at boot.</strong>
 
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
 
<pre>
@echo off
echo.
echo Hello world
echo.
pause
</pre>

Revision as of 17:04, 28 February 2025

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