1 Star 0 Fork 0

vector_ming / ssh-web-console

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

ssh-web-console

you can connect to your linux machine by ssh in your browser.

Quick start

$ docker pull genshen/ssh-web-console:latest
# docker build --build-arg GOMODULE=on -t genshen/ssh-web-console . # or build docker image on your own machine
$ docker run -v ${PWD}/conf:/home/web/conf -p 2222:2222 --rm genshen/ssh-web-console

Open your browser, visit http://localhost:2222. Enjoy it!

note: To run docker container, make sure config.yaml file is in directory ${PWD}/conf

Build & Run

make sure you go version is not less than 1.11

build frontend

$ cd /tmp
$ git clone https://github.com/genshen/webConsole web-console
$ cd web-console
$ yarn install
$ yarn build

build go

$ go get github.com/rakyll/statik
$ cp -r /tmp/web-console/dist  ./dist
$ statik dist  # use statik tool to convert files in 'dist' dir to go code, and compile into binary.
$ export GO111MODULE=on # for go 1.11.x
$ go build

Run

run: ./ssh-web-console (you should check directory specified by soft_static_dir in conf/config.yaml exists), and than you can enjoy it in your browser by visiting http://localhost:2222.

Screenshots

Related Works

https://github.com/shibingli/webconsole

MIT License Copyright (c) 2017 genshen chu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Connect to your linux machine via ssh in your browser. 展开 收起
Go
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/vectorming/ssh-web-console.git
git@gitee.com:vectorming/ssh-web-console.git
vectorming
ssh-web-console
ssh-web-console
master

搜索帮助