Sign inSign up

hsqbh/webssh

By hsqbh

Updated about 3 years ago

Image
0

965

hsqbh/webssh repository overview

ARM 部署命令 : docker run -d --name webssh -p 5032:5032 hsqbh/webssh

AMD 部署命令 : docker run -d --name webssh -p 5032:5032 hsqbh/webssh:amd

自定义账户密码和端口案例: docker run -itd --name webssh --network host --restart=always hsqbh/webssh:amd -a user:passwd -p 65022

说明
Usage of ./webssh_linux_amd64:
  -a string
        开启账号密码登录验证, '-a user:pass'的格式传参
  -p int
        服务运行端口 (default 5032)
  -t int
        ssh连接超时时间(min) (default 120)
  -s    保存ssh密码
  -v    显示版本号

宝塔反代配置文件:

#PROXY-START/
location  ~* \.(gif|png|jpg|css|js|woff|woff2)$
{
    proxy_pass http://localhost:5032;
    proxy_set_header Host localhost;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    
    proxy_redirect             off;
    proxy_http_version         1.1;
    proxy_set_header Upgrade   $http_upgrade;
    proxy_set_header Connection "upgrade";
    
    expires 12h;
}
location /
{
    proxy_pass http://localhost:5032;
    proxy_set_header Host localhost;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    
    proxy_redirect             off;
    proxy_http_version         1.1;
    proxy_set_header Upgrade   $http_upgrade;
    proxy_set_header Connection "upgrade";
    
    add_header X-Cache $upstream_cache_status;
    
    #Set Nginx Cache
    
    	add_header Cache-Control no-cache;
}

#PROXY-END/


Tag summary

Content type

Image

Digest

sha256:192770bf0

Size

9.3 MB

Last updated

over 3 years ago

docker pull hsqbh/webssh