https://hub.docker.com/r/shibingli/webconsole
基于Golang、WebSocket、xTermJS 的 Web SSH 远程终端,希望能帮到大家。
主要应用到隔离网络内,SSH远程终端的访问问题。
运行环境要求:
1、Linux Kernel 3.x/x86_64 及更高版本
2、建议 Linux 发行版 CentOS 7.0+ / Ubuntu 14.04+
3、启用支持 SSL/TLS 模式访问时,需要生成对应的 SSL 证书文件且放置到 "conf" 文件夹下并配置 "conf.json" 文件
4、客户端要求使用 IE9、Chrome 40、Firefox 38、Safari 9 或更高版本的浏览器访问
5、服务器端需要对防火墙开启对应的外部访问端口。具体需要开放的端口请参考 "conf" 文件夹下的 "conf.json" 文件中的端口部分的配置
6、本程序只能对 Unix/Linux 类的操作系统,且支持 SSH 协议的 OS 进行远程操作
7、基于Go 1.6 +,原生支持 http2
详细地址:http://git.oschina.net/shibingli/webconsole 或 https://github.com/shibingli/webconsole
常规部署:
# wget https://dl.google.com/go/go1.8.1.linux-amd64.tar.gz && tar zxvf go1.8.1.linux-amd64.tar.gz -C /usr/local
wget https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz && tar zxvf go1.11.4.linux-amd64.tar.gz -C /usr/local
echo 'export PATH="/usr/local/go/bin:$PATH"' >> /etc/profile
source /etc/profile
cd /data && git clone --recurse-submodules https://github.com/shibingli/webconsole.git && cd webconsole && git submodule update --init --recursive
cd /data/webconsole/src/apibox.club/apibox
GOPATH=/data/webconsole go install
# 设置开机自动启动
cp /data/webconsole/bin/webconsole /etc/init.d/ && chmod 755 /etc/init.d/webconsole
chkconfig --add webconsole && chkconfig webconsole on && service webconsole start
容器部署:
webconsole
shibingli/webconsole:latest
卷:
/etc/localtime:/etc/localtime:ro
/data/file:/data/file
/data/site:/data/site
端口:http8880-8080
签名:这个人很懒,什么也没有留下!