mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
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:
@@ -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
|
||||
|
||||
4
rootfs_overlay/etc/ssh/sshd_config
Normal file
4
rootfs_overlay/etc/ssh/sshd_config
Normal file
@@ -0,0 +1,4 @@
|
||||
AuthorizedKeysFile .ssh/authorized_keys
|
||||
Subsystem sftp /usr/libexec/sftp-server
|
||||
PermitRootLogin yes
|
||||
PermitEmptyPasswords yes
|
||||
Reference in New Issue
Block a user