From cecda30e855f541ce4f0694561ffa3a65938a3c4 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 9 May 2020 02:25:39 -0500 Subject: What the script to launch dropbear would be if the shell was ready for it. (init can't run /etc/rc/* without "pathname expansion", still TODO.) --- scripts/root/dropbear | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/root/dropbear b/scripts/root/dropbear index 60654c45..9dc9bb0d 100755 --- a/scripts/root/dropbear +++ b/scripts/root/dropbear @@ -48,6 +48,8 @@ rm -rf zlib-* echo -e 'root:$1$939UTPzb$/PfVYAsF2Hqi/AQ3UBjbK/:::::::\nguest::::::::' > "$ROOT"/etc/shadow && chmod 600 "$ROOT"/etc/shadow && +echo 'netcat -p 22 -L dropbear -iRB &' > "$ROOT"/etc/rc/dropbear && + # file to run on host to ssh into guest echo 'ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" ${1:+$1@}127.0.0.1 -p 2222' > "$OUTPUT"/ssh2dropbear.sh && chmod +x "$OUTPUT"/ssh2dropbear.sh -- cgit v1.2.3