代码拉取完成,页面将自动刷新
you can connect to your linux machine by ssh in your browser.
$ 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
make sure you go version is not less than 1.11
$ cd /tmp
$ git clone https://github.com/genshen/webConsole web-console
$ cd web-console
$ yarn install
$ yarn build
$ 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: ./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
.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。