Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Jrohy/webssh
简易在线终端和sftp工具
https://github.com/Jrohy/webssh
Last synced: 14 days ago
JSON representation
简易在线终端和sftp工具
- Host: GitHub
- URL: https://github.com/Jrohy/webssh
- Owner: Jrohy
- License: gpl-3.0
- Created: 2020-09-23T03:03:06.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T08:58:51.000Z (7 months ago)
- Last Synced: 2024-07-31T08:19:26.272Z (3 months ago)
- Language: Vue
- Homepage:
- Size: 1.49 MB
- Stars: 315
- Watchers: 10
- Forks: 116
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - Jrohy/webssh - 简易在线终端和sftp工具 (Vue)
README
# webssh
![](https://img.shields.io/github/v/release/Jrohy/webssh.svg)
![](https://img.shields.io/docker/pulls/jrohy/webssh.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/Jrohy/webssh)](https://goreportcard.com/report/github.com/Jrohy/webssh)
[![Downloads](https://img.shields.io/github/downloads/Jrohy/webssh/total.svg)](https://img.shields.io/github/downloads/Jrohy/webssh/total.svg)
[![License](https://img.shields.io/badge/license-GPL%20V3-blue.svg?longCache=true)](https://www.gnu.org/licenses/gpl-3.0.en.html)
简易在线ssh和sftp工具, 可在线敲命令和上传下载文件## 运行截图
![avatar](asset/1.png)
![avatar](asset/2.png)## 命令行
```
Usage of ./webssh_linux_amd64:
-a string
开启账号密码登录验证, '-a user:pass'的格式传参
-p int
服务运行端口 (default 5032)
-t int
ssh连接超时时间(min) (default 120)
-s 保存ssh密码
-v 显示版本号
```## 原理
```
+---------+ http +--------+ ssh +-----------+
| browser | <==========> | webssh | <=======> | ssh server|
+---------+ websocket +--------+ ssh +-----------+
```## 运行
1. 下载[releases](https://github.com/Jrohy/webssh/releases)里不同平台的包来执行即可2. docker运行:
```
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 jrohy/webssh
```
支持添加的环境变量:
```
port: web使用端口, 默认5032
savePass: 是否保存密码, 默认true
authInfo: 开启账号密码登录验证, 'user:pass'的格式设置
```