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
or using Docker Compose:
$ git clone https://github.com/genshen/ssh-web-console.git
$ cd ssh-web-console
$ docker-compose up -d
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 your Go version is 1.11 or later
git clone --recurse-submodules https://github.com/genshen/ssh-web-console.git
cd ssh-web-console
cd web
yarn install
yarn build
cd ../
go get github.com/rakyll/statik
statik --src=web/build # use statik tool to convert files in 'web/build' dir to go code, and compile into binary.
export GO111MODULE=on # for go 1.11.x
go build
run: ./ssh-web-console
, and than you can enjoy it in your browser by visiting http://localhost:2222
.