GateOne Web SSH 环境搭建
- 环境配置
安装python及tornado
yum -y install python-pip
pip install tornado - GateOne安装
下载源码:
git clone https://github.com/liftoff/GateOne.git
安装:
cd GateOne
python setup.py install --prefix=/usr/local/ - 配置
vim /etc/gateone/conf.d/10server.conf
// 默认false, 修改为true, 关闭https
"disable_ssl": true,
// 加入localhost:8080 允许localhost:8080访问GateOne
"origins": ["localhost:8080", "localhost", "127.0.0.1", "Jerry_dev"],
// 端口号默认是443,修改为80
"port": 80,
访问验证配置
vim /etc/gateone/conf.d/20authentication.conf - 启动
systemctl restart gateone
chkconfig gateone on - 连接
URL:https://ip_addr:port/?ssh=ssh://hostname@host_ipaddr
eg:http://10.10.31.13?ssh=ssh://pi@10.10.31.13 - 问题
无法使用vim编辑器,ESC无反应
Learn how to learn~~