github地址:
https://github.com/dushixiang/next-terminal

搭建好后的效果:
https://ssh.cym.cm
测试账号密码test,不要改密码,也不要添加服务器,省的被其他人利用了

因为我这台服务器是香港的,相当于自带中转,所以连各个地方的服务器都很快

搭建就一行:

docker run -d \
  -p 8088:8088 \
  --name next-terminal \
  --restart always dushixiang/next-terminal:latest

然后反向代理即可

location / {
    proxy_pass http://127.0.0.1:8088/;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $http_connection;
}