Sshwifty not responding

Hello. I'm having a problem with Sshwifty. I can load it on my website, but it doesn't actually allow me to connect to anything. I get this message whenever I try to click on "SSH" or "Telnet".

"Unable to connect to the Sshwifty backend server: TypeError: window.crypto.subtle is undefined"

Strange thing is, it works fine on localhost.

Any and all help is greatly appreciated.

Thank you.

The error you're encountering—TypeError: window.crypto.subtle is undefined—indicates that the Web Cryptography API required by Sshwifty is not available in your environment. This API is critical for secure operations like SSH key handling.

Suggested investigations:

The Web Cryptography API (including window.crypto.subtle) is only available in secure contexts, meaning it requires:

  • HTTPS for remote sites.
  • localhost is treated as a secure context, which is why it works locally.

Hosting Issue:

  • If your website is served over plain HTTP instead of HTTPS, the window.crypto.subtle API will not be available.

Nod. I see what you're saying. It's interesting, though. I have wetty working perfectly fine on my web site. I don't get it.

Here's a docker shel script that launches wetty, which is somewhat similar to the sshwifty start script.

docker run --rm -p 3000:3000 wettyoss/wetty -c igTerm.term --ssh-pass xxxxxx --allow-iframe --ssh-host =1.2.3.4

And here's the sshwifty start script:

docker run --detach --restart always --publish 8182:8182 --name sshwifty niruix sshwifty:latest

Thanks.

You should always state critical facts—like that you’re working in a Docker container—when posting questions. Omitting such basic details demonstrates a lack of understanding of the environment you’re working in and makes it harder for others to help you effectively.

Ok. I use docker ps to list the docks, and docker stop to stop them. That's really all i've been doing, during these "tests".

Thank you.

Sorry @ignatius,

I simply cannot understand what your are doing, the architecture you are working in, the software stack, the application, the docker configuration, etc.

So, I hope someone else can understand and help you better!

Happy New Year 2025 and Best of Luck and Prosperity to You!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.