Login without asking for the username

We have wanted to do this since forever, but the last straw was gem5 aarch64,
which runs too fast, and makes it very hard to write "root" withing 60 seconds!

Another possibility to solve that would have been to find an answer for:
https://unix.stackexchange.com/questions/340333/how-can-i-get-bin-login-to-not-timeout
which we didn't, but not typing root at all is even better.

Take this opportunity to document how to login into user0.

sshd: automate and document further

gdbserver: automatically startup internet on /gdbserver.sh
This commit is contained in:
Ciro Santilli
2018-03-26 12:00:05 +01:00
parent 00bce69784
commit ac67ce3643
9 changed files with 56 additions and 10 deletions

View File

@@ -8,7 +8,7 @@
::sysinit:/etc/init.d/rcS
# https://unix.stackexchange.com/questions/299408/how-to-login-automatically-without-typing-root-in-buildroot-x86-64-qemu
#console::respawn:/bin/sh
console::respawn:/sbin/getty -n -L console 0 vt100
console::respawn:/sbin/getty -n -L -l /loginroot.sh console 0 vt100
::ctrlaltdel:/sbin/reboot
::shutdown:/etc/init.d/rcK
::shutdown:/sbin/swapoff -a

View File

@@ -0,0 +1,4 @@
AuthorizedKeysFile .ssh/authorized_keys
Subsystem sftp /usr/libexec/sftp-server
PermitRootLogin yes
PermitEmptyPasswords yes