Skip to content

Docker sshwifty 建立浏览器远程ssh登录服务

Tags:

官网在这: https://github.com/niruix/sshwifty

运行

docker run -d \
  -e PUID=$UID \
  -e PGID=$GID \
  -e TZ=Asia/Shanghai \
  --restart always \
  --publish 8182:8182 \
  --name sshwifty \
  niruix/sshwifty:latest

但直接访问就会出现”importKey”的错误

改成 HTTPS,又会出现”WebSocket Error (1006)”的错误

需要在反向代理之后做一些简单配置修改

    # added the following 2 lines
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";

这之后就 OK 了

CloudFlare 记得打开Proxy

Leave a Reply

Your email address will not be published.