* This allows logging in to freshly built image using ssh. Change-Id: I15baeee455827b73f12e1a222b166bd7975786dd Reviewed-on: https://review.haiku-os.org/c/haiku/+/10426 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Kacper Kasper <[email protected]> Reviewed-by: Priyanshu Gupta <[email protected]>
9 lines
399 B
Bash
Executable File
9 lines
399 B
Bash
Executable File
#!/bin/sh
|
|
|
|
sshd_config_path=/system/settings/ssh/sshd_config
|
|
/bin/sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/;' $sshd_config_path
|
|
/bin/sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/;' $sshd_config_path
|
|
/bin/sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords yes/' $sshd_config_path
|
|
/bin/passwd -d user
|
|
/bin/sshd -D & # sshd fails to start on first boot
|