Giter Site home page Giter Site logo

ssh-web-console's Introduction

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

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

Build & Run

Make sure your Go version is 1.11 or later

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

Related Works

ssh-web-console's People

Contributors

genshen avatar ihosseini083 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ssh-web-console's Issues

Question about proxy

Hi there!

Just watching your project, Im triying to proxy the ssh-web-console using Apache but it doesnt works. :-( Could you help me?
Im trying to use ProxyPass and ProxyPassReverse but for some reasong the app is always returning 301 redirect to /.
Maybe some tweak in config?

Thank you!

under develop!

under develop! under develop! under develop! under develop! under develop! ?

如何隱藏Host inputext 欄位

你好

我想要在登入頁面輸入Host的inputeText 這個欄位作隱藏,
另外,也要給它預設SSH 連入的IP Address,
請問我可以在哪個檔案作修改??

SSH Session Lost

When it Starts! ..all ok
2024/02/12 15:56:45 api serving at endpoint /
2024/02/12 15:56:45 listening on port :2222

When start a new ssh connection:
2024/02/12 16:17:13 Error: error reading webSocket message: failed to get reader: failed to read frame header: EOF
2024/02/12 16:17:13 Info: websocket finished!
2024/02/12 16:17:13 ssh exist from server wait: remote command exited without exit status or exit signal
2024/02/12 16:17:35 Error: error reading webSocket message: failed to get reader: failed to read frame header: EOF
2024/02/12 16:17:35 Info: websocket finished!
2024/02/12 16:17:35 ssh exist from server wait: remote command exited without exit status or exit signal

Listen on localhost

Hi! Can we force the app to listen on local ip like 127.0.0.1? that would be great because that way we can use it under nginx reverse proxy.

Update docker image

The last update to the docker image was more than an year ago, with version 0.3.0.

Is it possible to update it to version 0.4.0?

Cannot compile!

Hello, I'm getting an error while compiling. It says that github.com/genshen/ssh-web-console/statik is missing in route.go. I noticed that this file is also not present in your project's source code. How should I handle this? I'm currently unable to compile.
image
image

error in browser: "websocket Could not decode a text frame as UTF-8".

For example, we login into a remote host, then run (make sure you have docker):
docker run -it --rm debian:latest bash.
In the running container, run: apt-get update && apt-get install vim && vim.
This will make client to close websocket connection with error websocket Could not decode a text frame as UTF-8

ssh-web-console version: v0.2.2 or 170d24b

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.