1
1
# ssh-web-console
2
+
2
3
you can connect to your linux machine by ssh in your browser.
3
4
4
5
![ Docker Image Size (latest by date)] ( https://img.shields.io/docker/image-size/genshen/ssh-web-console?logo=docker&sort=date )
5
6
![ Docker Image Version (latest semver)] ( https://img.shields.io/docker/v/genshen/ssh-web-console?sort=semver&logo=docker )
6
7
![ Docker Pulls] ( https://img.shields.io/docker/pulls/genshen/ssh-web-console?logo=docker )
7
8
8
9
## Quick start
10
+
9
11
``` bash
10
12
$ docker pull genshen/ssh-web-console:latest
11
13
# docker build --build-arg GOMODULE=on -t genshen/ssh-web-console . # or build docker image on your own machine
12
14
$ docker run -v ${PWD} /conf:/home/web/conf -p 2222:2222 --rm genshen/ssh-web-console
13
15
```
14
16
17
+ or using Docker Compose:
18
+
19
+ ``` bash
20
+ $ git clone https://github.com/genshen/ssh-web-console.git
21
+ $ cd ssh-web-console
22
+ $ docker-compose up -d
23
+ ```
24
+
15
25
Open your browser, visit ` http://localhost:2222 ` . Enjoy it!
16
26
17
- ** note** : To run docker container, make sure config.yaml file is in directory ${PWD}/conf
27
+ ** NOTE** : To run docker container, make sure config.yaml file is in directory ${PWD}/conf
28
+
18
29
## Build & Run
19
- make sure you go version is not less than 1.11
20
30
21
- ### clone
31
+ Make sure your Go version is 1.11 or later
32
+
33
+ ### Clone
34
+
22
35
``` bash
23
36
git clone --recurse-submodules https://github.com/genshen/ssh-web-console.git
24
37
cd ssh-web-console
25
38
```
26
39
27
- ### build frontend
40
+ ### Build frontend
41
+
28
42
``` bash
29
43
cd web
30
44
yarn install
31
45
yarn build
32
46
cd ../
33
47
```
34
48
35
- ### build go
49
+ ### Build go
50
+
36
51
``` bash
37
52
go get github.com/rakyll/statik
38
53
statik --src=web/build # use statik tool to convert files in 'web/build' dir to go code, and compile into binary.
@@ -41,12 +56,15 @@ go build
41
56
```
42
57
43
58
## Run
59
+
44
60
run: ` ./ssh-web-console ` , and than you can enjoy it in your browser by visiting ` http://localhost:2222 ` .
45
61
46
62
## Screenshots
63
+
47
64
![ ] ( ./Screenshots/shot2.png )
48
65
![ ] ( ./Screenshots/shot3.png )
49
66
![ ] ( ./Screenshots/shot4.png )
50
67
51
- # Related Works
52
- https://github.com/shibingli/webconsole
68
+ ## Related Works
69
+
70
+ - [ shibingli/webconsole] ( https://github.com/shibingli/webconsole )
0 commit comments