https://github.com/wuchihsu/go-ssh-web-client
A simple SSH web client using Go, WebSocket and Xterm.js.
https://github.com/wuchihsu/go-ssh-web-client
go ssh websocket xterm
Last synced: 3 months ago
JSON representation
A simple SSH web client using Go, WebSocket and Xterm.js.
- Host: GitHub
- URL: https://github.com/wuchihsu/go-ssh-web-client
- Owner: wuchihsu
- License: mit
- Created: 2022-02-17T11:19:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-17T17:58:54.000Z (over 3 years ago)
- Last Synced: 2024-06-19T05:59:39.670Z (almost 2 years ago)
- Topics: go, ssh, websocket, xterm
- Language: Go
- Homepage:
- Size: 173 KB
- Stars: 50
- Watchers: 1
- Forks: 20
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go SSH Web Client
A simple SSH web client using Go, WebSocket and Xterm.js.
## Getting Started
There are two ways to install and run the project, using Go and using Docker.
### Go
After cloning the project, go into its `front` folder and install npm packages:
```bash
cd go-ssh-web-client/front
npm install --production
```
Then go back to main folder, add configuration file and modify it:
```bash
cd ..
cp config.toml.sample config.toml
vim config.toml
```
Modify the host, port, user and password attributes to match the target SSH server, then save the file. Finally, run the program:
```bash
go run .
```
Now, the HTTP server is running on port 8080, open http://localhost:8080 to use it (use http at your own risk).
### Docker
First, prepare a configuration file, like [config.toml.sample](config.toml.sample). After preparing `config.toml` in current directory, run the prebuilt image:
```bash
docker run --name go-ssh -d \
-v `pwd`/config.toml:/root/config.toml \
-p 8080:8080 \
wuchihsu/go-ssh-web-client
```
Now, the HTTP server is running on port 8080, open http://localhost:8080 to use it (use http at your own risk).