GateOne 是一款使用 HTML5 技术编写的网页版 SSH 终端模拟器。基于现代的 HTML5 技术,无需任何浏览器插件、支持多个 SSH 进程、能够嵌入到其余任意应用程序中、支持使用 JavaScript,Python 甚至纯 CSS 编写的插件、支持 SSH 进程副本,打开多个进程而无需重复输入密码、 支持各类服务器端的日志功能,支持 Keberos-based 单点登陆甚至活动目录、 支持操做日志记录,具备操做记录回放功能。html
yum -y install python-tornado yum -y install epel-release #安装扩展源epel yum -y install python-pip #只有安装扩展源epel后才能够安装pip pip install futures pip install html5lib
方式1:git安装(该方式可能受网络影响,没法拉取下来)html5
git clone https://github.com/liftoff/GateOne cd GateOne/ python setup.py install
方式2:下载GateOne-master.zip而后解压便可python
下载连接:https://codeload.github.com/liftoff/GateOne/zip/refs/heads/masternginx
unzip GateOne-master.zip cd GateOne-master #运行run_gateone.py 检查依赖,如无报错,则执行安装 python run_gateone.py #执行安装 setup.py python setup.py install
默认安装完成后执行程序为/usr/bin/gateone,其会在systemctl 下产生相关服务。能够经过以下命令启动和配置开机自启动。git
systemctl start gateone systemctl enable gateone
浏览器访问 https://xxxxx 便可看到如下页面:github
点击SSH 图标便可进行登陆验证,验证完毕后,就能够经过web界面操控服务器web
使用gateone --help能够看下gateone支持的配置参数。其默认配置为/etc/gateone/conf.d/目录下(该目录下默认是空的,执行gateone启动后会生成三个文件):json
[root@localhost ~]# cd /etc/gateone/conf.d/ [root@localhost conf.d]# ls 10server.conf 20authentication.conf 50terminal.conf [root@localhost conf.d]#
其配置文件为json格式。浏览器
服务的默认配置是使用的https,能够经过将disable_ssl 设置为true关闭https(设置为http)。服务器
url_prefix 默认为/,即https://IP:端口访问主机,若是须要和nginx进行整合,通常能够配置该配置,好比设置url_prefix值为"/gateone/"。
origins配置为指定容许链接的IP地址,当配置nginx反向代理时,须要将nginx的地址加入该地址中,否则在设置完url_prefix后,不设置该项会出现/ws 404的错误。