diff options
author | Rob Landley <rob@landley.net> | 2020-05-09 02:25:39 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-05-09 02:25:39 -0500 |
commit | cecda30e855f541ce4f0694561ffa3a65938a3c4 (patch) | |
tree | d8415ad1e921346569d0bf1d8da959a5278cabd7 /scripts/root | |
parent | 5fec2541a2f282826c10dce168d11a109587c065 (diff) | |
download | toybox-cecda30e855f541ce4f0694561ffa3a65938a3c4.tar.gz |
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.)
Diffstat (limited to 'scripts/root')
-rwxr-xr-x | scripts/root/dropbear | 2 |
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 |