CentOS7搭建GateOne,实现WebSSH


参考文章:CentOS安装配置GateOne实现Web终端SSH功能

GateOne

GateOne地址:https://github.com/liftoff/GateOne
在这里插入图片描述
可以看到官方也2年没有更新了。

首先有python环境并安装了pip(我的是python2.7)

CentOS7自带python2.7,可以运行 python -v 瞅瞅你python的版本
在这里插入图片描述

安装pip

wget https://soft.laozuo.org/git/get-pip.py
python get-pip.py

安装tornado、Pillow

pip install 'tornado==2.4.1'
pip install Pillow

下载GateOne且安装

wget https://github.com/downloads/liftoff/GateOne/gateone-1.1.tar.gz
tar -zxvf gateone-1.1.tar.gz
cd GateOne
python setup.py install

运行GateOne

cd /opt/gateone
./gateone.py

默认监听443端口
在这里插入图片描述

修改GateOne配置远程管理

配置文件 /opt/gateone/server.conf
vi 打开
origins这里添加内容,我们的服务器公网IP地址要加入进去。注意分号和双引号~
在这里插入图片描述
port端口默认是443,我们也可以修改成自己的端口。修改后记得安全组放行!!!。
在这里插入图片描述
修改session超时时间。不加入会一直在刷新刷新的,无法操作。
在这里插入图片描述
配置文件里还有很多内容,可以自行修改
在这里插入图片描述

访问webssh

默认https,加上公网IP:443端口,即可访问登录页面
在这里插入图片描述
输入对应信息,成功登录
在这里插入图片描述

设定自动后台运行

/sbin/chkconfig gateone on
systemctl start gateone

通过 systemctl 实现控制
老规矩,运行/停止/重启,查看状态,设置开机自启/关闭开机自启
分别是 systemctl start/stop/restart/status/enable/disable gateone


Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source Love丶伊卡洛斯 !
评论
 Previous
CentOS7搭建Frp实现内网穿透 CentOS7搭建Frp实现内网穿透
参考文章:十分钟教你配置frp实现内网穿透CentOS7 安装frp与开机启动frp实现内网穿透(centos7) 下载安装官方项目地址:https://github.com/fatedier/frp 下载这里下载的是0.32.1版 wge
Next 
CentOS7的Apache搭建,WEB项目部署,域名备案,域名解析,正式上线 CentOS7的Apache搭建,WEB项目部署,域名备案,域名解析,正式上线
即上期【超详细】ubuntu18.04服务器 搭建Java,Tomcat和MySQL过后,这期主要将Apache的搭建,WEB项目的部署,域名的备案,域名的解析,正式上线。 Apache搭建参考:Centos 7 Apache 服务安装及配
2020-04-06
  TOC