GithubHelp home page GithubHelp logo

webssh-java's Introduction

基于NoCortY的项目WebSSH修改。

  1. xterm版本升至4.X
  2. terminal自适应宽高
  3. 心跳检查
  4. 断开后自动重新连接

效果

自适应宽高

autoFit

心跳检查

heartbeat

断开自动重连

reconnect

参考资料:
xterm.js + vue + websocket实现终端功能(xterm 3.x+xterm 4.x)
理解WebSocket心跳及重连机制(五)

2020-3-13

最近有些事挺忙的,可能暂时稍微顺延一下更新的日程(大概需要在4月1号之后),但是一定会继续维护下去的,望多多理解。

启动

项目导入IDEA后可以直接进行运行,没有任何外部依赖~~

本项目的Blog使用纯Java实现一个WebSSH项目

注意

由于前端代码中没有指定终端的信息

所以需要各位自己输入这些信息,位置在webssh.html中

openTerminal( {
        /*operate:'connect',
        host: '',//IP
        port: '',//端口号
        username: '',//用户名
        password: ''//密码*/
    });

运行展示

  • 连接

    连接

  • 连接成功

    连接成功

  • 命令操作

    ls命令:

    ls命令

    vim编辑器:

    vim编辑器

    top命令:

    top命令

写在最后

欢迎各位大佬给我提issue,感谢!

webssh-java's People

Contributors

mervynlam 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

Watchers

 avatar  avatar

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.