Git Product home page Git Product logo

webssh's People

Contributors

cdfmlr avatar ixyxj avatar jrohy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webssh's Issues

无法实现nginx的反向代理

webssh写的静态文件 引用是用绝对路径。
nginx没法配置反向代理

static 可能在多个平台上被引用,又不能直接在写/static跳转。

go程序没整过,可以重新打包一个,采用相对路径的吗?

python也有一个webssh,也是用websocket传递的,可以配置在nginx后,
但是它没有文件上传功能

考虑了多个使用场景,给个建议

  1. 能否加入端口映射的功能,从ssh目标主机映射到本地的端口,然后可以被远程访问到这个端口,相当于加速,相当于特色功能
  2. 根据这样的框架,我看了下交互用的是ws,如果可能,输入个网址或者指定页面,可以加速bard,gpt,bingAI,传递回目标页面相关的页面?

Two suggestions for improving experience

1. Remembering password. Once it's stored locally, no worry is needed~

2. Deleting history. Now I can achieve this by deleting local storage in F12 DevTools, but adding this function could make it easier.

求安装教程

有一键安装或者详细的安装教程吗,装不起来。

中文会出现乱码

1.目前,网页登陆使用未发现功能上的异常;
2.页面未对传输字符串编码字符集做处理,默认是utf8,对于gbk等本地显示中文为乱码,请增加字符集切换或者登录时,可以指定字符集;
希望能得到回复:[email protected]

修改首页内容

知识修改 首页内容

比如默认root 修改为其他用户

进入容器没找到各种vue

是全部打包成一个webssh应用程序了吗?

How do I save the ssh password

Hello, everyone, I am deployed on docker, I saw the instruction command line -s, save the ssh password, I am a novice, do not know how to input the command, please help

Request for two supports for IPv6

  1. Whenever I tried to connect with an IPv6 host, the websocket connection closed. Hope this can be supported~

  2. It seems unable to run in IPv6-only server, even I have already added 6to4 nameservers to make the server able to handle IPv4 communications.

Tab close when exit

It would be nice if the tab would close when the session is closed by exit.

支持ipv6地址

有些主机只有ipv6地址或ipv6公网地址,麻烦,谢谢!

bug: 未正确关闭部分 ssh 连接,持续消耗资源导致系统无法响应

问题描述

该 webssh 服务后端程序,存在多处 ssh client 使用完后未 Close,造成 TCP/SSH 连接泄漏,可能导致登陆的目标主机上累积大量 sshd 进程,耗尽系统资源。

问题发现

发现一台服务器无法以任何用户通过任何方法登陆,但监控显示该服务器 CPU、内存、硬盘、网络等环境处于正常状态,其上运行的部分服务可正常访问、另一部分服务无法响应。该服务器最近常使用该 webssh 服务登陆。

重启该服务器后,可以正常 SSH 登陆。分析 /var/log/auth.log 等日志发现大量与无法登陆有关的日志:

Nov 15 03:27:29 HOST sshd[30604]: fatal: fork of unprivileged child failed

结合其他系统、服务日志,确定系统达到了最大进程限制,表现出登陆异常。

进一步研究发现,重启前系统内充斥大量 Ss 状态的 sshd: USER 进程:

  • S: interruptible sleep (waiting for an event to complete)
  • s: is a session leader

其中 USER 为常用该 webssh 服务登陆的用户。确定此次异常由 webssh 服务引起。

问题复现

WEBSSH_SERVER(IP地址)上运行 webssh 服务,尝试以 WEBSSH_USER 用户登陆一台目标主机 T。

在目标主机 T 上进行简单检测:

$ netstat -na | grep 22 | grep WEBSSH_SERVER [ | wc -l ]
$ ps -aux | grep 'sshd: WEBSSH_USER' [ | wc -l ]

多次使用 webssh 服务连接目标主机 T,可以看到 SSH 的 TCP 连接数、sshd 进程数增加。且两个量随连接保持时长而增加,使用文件管理功能更会快速增加两个值。通过关闭终端标签页、关闭浏览器页面等方式关闭连接时,TCP 连接数、sshd 进程数会下降 1(减远少于增)。

WEBSSH_SERVER 上,做 netstat -na | grep 22,同样会看到大量对目标主机 T 的 TCP 连接。

WEBSSH_SERVER 上关闭 webssh 服务程序后,上述 TCP 连接、sshd 进程均立刻结束,回到正常状态。

建议新增密钥证书方式登录

目前只能纯密码登录,建议新增通过密钥文件登录。
wiki里面可以贴支付宝或者微信收款码 可以打赏维持更新

run实例没写哦

docker hub上

docker run -d --net=host --log-driver json-file --log-opt max-file=1 --log-opt max-size=100m --restart always --name webssh -e TZ=Asia/Shanghai -e savePass=true jrohy/webssh

这个传参也忒简单了。都没介绍

就一个savePass 这个干啥用的。

看了git才知道默认端口是5032。
-t 怎么传
-a 又是如何传

好像 跟这个 lihaixin/webssh2:ssh 长的狠像哦

permission denied

文件上传时, 前台提示成功了
实际后台看到的日志 是
permission denied

请问 run 时要加什么参数吗

大佬能不能添加个需要密码访问网站

添加个访问域名进入网站的时候需要管理员密码访问网站才能使用站点,类似shellngn搭建好网站第一次访问网站设置管理员账号和密码,要是这个比较麻烦就弄个管理员设置的密码访问站点才能进入的功能,有希望实现吗?

English interface

Hi,

Do you plan creating an English web interface?

Thanks a lot,
Ákos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.