Skip to content

Connect to your linux machine via ssh in your browser.

License

Notifications You must be signed in to change notification settings

hebruce110/ssh-web-console

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssh-web-console

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

##Quick start

$ docker build --build-arg GOMODULE=on -t genshen/ssh-web-console .
$ docker run -v ${PWD}/conf:/home/web/conf --rm genshen/ssh-web-console

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 to 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

About

Connect to your linux machine via ssh in your browser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.5%
  • Dockerfile 3.5%