# WebSSH **Repository Path**: knife114/web-ssh ## Basic Information - **Project Name**: WebSSH - **Description**: 基于SpringBoot实现的Web SSH客户端。 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2024-11-16 - **Last Updated**: 2024-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

WebSSH小demo

## 启动 启动前修改 static / page / webssh.html 文件下的 ssh 连接配置。 ```javascript openTerminal({ operate: 'connect', host: '', //IP port: '22', //端口号 username: '', //用户名 password: '' //密码 }); ``` 项目导入IDEA后可以直接进行运行,没有任何外部依赖 ## 技术实现 **SpringBoot + Websocket + jsch + xterm.js** ## 导入依赖 ```xml org.springframework.boot spring-boot-starter-parent 2.1.7.RELEASE org.springframework.boot spring-boot-starter-web com.jcraft jsch 0.1.54 org.springframework.boot spring-boot-starter-websocket commons-io commons-io 1.4 commons-fileupload commons-fileupload 1.3.3 ``` ## 运行展示 - ### 连接 ![20220722143639](https://tuyong.oss-cn-hangzhou.aliyuncs.com/img/202207221456432.png) - ### 连接成功 ![20220722143310](https://tuyong.oss-cn-hangzhou.aliyuncs.com/img/202207221456101.png) - ### 命令操作 ![20220722143432](https://tuyong.oss-cn-hangzhou.aliyuncs.com/img/202207221456836.png) ![20220722143501](https://tuyong.oss-cn-hangzhou.aliyuncs.com/img/202207221456451.png) ![20220722143537](https://tuyong.oss-cn-hangzhou.aliyuncs.com/img/202207221456312.png)