aboutsummaryrefslogtreecommitdiff
path: root/scripts/root/dropbear
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/root/dropbear')
-rwxr-xr-xscripts/root/dropbear2
1 files changed, 2 insertions, 0 deletions
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