hellonet: set password for root

otherwise incoming ssh gets a bit fraught
This commit is contained in:
Daniel Barlow 2023-09-15 00:30:24 +01:00
parent 98c63e7498
commit 0f31afee2b
2 changed files with 6 additions and 4 deletions

View file

@ -77,9 +77,9 @@ stdin/stdout. Use ^P (not ^A) to switch to the monitor.
You should now see Linux boot messages and after a few seconds be You should now see Linux boot messages and after a few seconds be
presented with a login prompt. You can login on the console as presented with a login prompt. You can login on the console as
``root`` (no password) and poke around to see what processes are ``root`` (password is "secret") and poke around to see what processes are
running. Run ``shutdown`` to shut it down cleanly, or press ^P then running. To kill the emulator, press ^P (Control P) then c to enter the
type ``exit`` at the monitor to stop it suddenly. "QEMU Monitor", then type ``quit`` at the ``(qemu)`` prompt.
To see that it running an ssh service we need to connect to its To see that it running an ssh service we need to connect to its
emulated network. Start the machine again, if you had stopped it, emulated network. Start the machine again, if you had stopped it,

View file

@ -19,7 +19,9 @@ in rec {
services.sshd = svc.ssh.build { }; services.sshd = svc.ssh.build { };
users.root = { users.root = {
passwd = ""; # the password is "secret". Use mkpasswd -m sha512crypt to
# create this hashed password string
passwd = "$6$y7WZ5hM6l5nriLmo$5AJlmzQZ6WA.7uBC7S8L4o19ESR28Dg25v64/vDvvCN01Ms9QoHeGByj8lGlJ4/b.dbwR9Hq2KXurSnLigt1W1";
}; };
services.dns = services.dns =