ssh-web-console

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 6 Imported by: 0

README

ssh-web-console

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

Docker Image Size (latest by date) Docker Image Version (latest semver) Docker Pulls

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

clone
git clone --recurse-submodules https://github.com/genshen/ssh-web-console.git
cd ssh-web-console
build frontend
cd web
yarn install
yarn build
cd ../
build go
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

run: ./ssh-web-console, and than you can enjoy it in your browser by visiting http://localhost:2222.

Screenshots

https://github.com/shibingli/webconsole

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL