Skip to content

Instantly share code, notes, and snippets.

@goncalor
Created October 5, 2025 09:58
Show Gist options
  • Select an option

  • Save goncalor/7adb74e1676f3faa7bd1731a7023ab58 to your computer and use it in GitHub Desktop.

Select an option

Save goncalor/7adb74e1676f3faa7bd1731a7023ab58 to your computer and use it in GitHub Desktop.
FROM alpine
WORKDIR /app
RUN adduser -h /app -D user
RUN apk add tinyssh ucspi-tcp6
USER user
RUN tinysshd-makekey ./sshkeydir
EXPOSE 2222
CMD tcpserver -UHRDl0 0 2222 /usr/sbin/tinysshnoneauthd -vv -e 'cat /etc/motd' sshkeydir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment