Skip to content

Instantly share code, notes, and snippets.

@brandonros
Last active November 23, 2023 00:41
Show Gist options
  • Save brandonros/ca8b1595fe491176e060d3ef20523d17 to your computer and use it in GitHub Desktop.
Save brandonros/ca8b1595fe491176e060d3ef20523d17 to your computer and use it in GitHub Desktop.
Portable SSHD (Dropbear) on Windows with Cygwin
# build it with GitHub Actions: https://github.com/brandonros/dropbear/actions/runs/6964141533
# install Cygwin on the machine (probably need libcrypt package)
# run it from Cygwin terminal, not Git Bash or MinGW
mkpasswd -l > /etc/passwd
mkgroup -l > /etc/group
mkdir /etc/dropbear
mkdir ~/.ssh/
vi ~/.ssh/authorized_keys # paste ~/.ssh/id_rsa.pub into it, do not try to connect with passwords
./dropbear -F -E -R -w -s -g -j -k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment