ekzhang / sshx

Fast, collaborative live terminal sharing over the web

Home Page:https://sshx.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating a terminal in Alpine Linux exits immediately

gmile opened this issue · comments

I'm getting an UNSUPPORTED_OS, like on the screenshot:

image

I'm not sure where this error is coming from, and how to fix it. Happy to provide more details, but not sure what those would be at point 🤔

I'm trying to connect to an Alpine-based container, running in GitHub Actions.

Weird, I haven't seen that one before. Thanks for the report. Do you have a reproduction that I could take a look at?

I have a reproduction — I just tried in an alpine container, and the terminals immediately close as soon as they're created. Interesting! Maybe it's a quirk of busybox.

image
docker run -it --rm alpine:latest
apk add curl
curl https://sshx.io/get | sh
sshx

The "subsystem status" error you're seeing is coming from a content script, so it probably doesn't have anything to do with sshx. I can't reproduce that part.

Found the issue, it's because my default shell auto-detection isn't a particularly advanced heuristic. On most shells $SHELL is set, but otherwise I default to /bin/bash. I guess we could first check to see if /bin/bash is present and use /bin/sh otherwise.