From b1cbe870d6fd54ecd06c5cbac6b380513ad722ba Mon Sep 17 00:00:00 2001 From: Chakib Benziane Date: Sun, 21 Apr 2019 13:25:54 +0200 Subject: [PATCH] replace tcpsvd with nc, no need to recompile busybox --- README.md | 1 - etc/initramfs-tools/scripts/init-premount/tinyssh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 2fc2bbd..d7f2189 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ ## Requirements -- Rebuild busybox on debian with `CONFIG_TCPSVD=y` - Uninstall dropbear if previously installed - Add scripts in `/etc/initramfs-tools` - Add `authorized_keys` to `/etc/tinyssh-initramfs/authorized_keys` (only ssh-ed25519) diff --git a/etc/initramfs-tools/scripts/init-premount/tinyssh b/etc/initramfs-tools/scripts/init-premount/tinyssh index 35b5dd1..8053ac7 100755 --- a/etc/initramfs-tools/scripts/init-premount/tinyssh +++ b/etc/initramfs-tools/scripts/init-premount/tinyssh @@ -32,7 +32,7 @@ run_tinyssh() { # init-bottom script to kill the remaining ipconfig processes if # someone unlocks the rootfs from the console while the network is # being configured - exec /bin/tcpsvd 0 $ssh_port /usr/sbin/tinysshd -$flags ${TINYSSH_OPTIONS-} /etc/tinyssh/sshkeydir + exec /bin/nc -ll -p $ssh_port -e /usr/sbin/tinysshd -$flags ${TINYSSH_OPTIONS-} /etc/tinyssh/sshkeydir } if [ -e /etc/tinyssh/config ]; then