开源堡垒机GateOne的安装、配置

2017-10-31 Frank 服务器

环境

centos6.5

安装

yum install -y http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y

yum install -y python-devel gcc dtach python-pip python-imaging python-kerberos
yum install -y https://github.com/downloads/liftoff/GateOne/tornado-2.4-1.noarch.rpm
cd /usr/local/src
git clone https://github.com/liftoff/GateOne.git

cd GateOne
python setup.py install

service gateone start
service gateone stop
pip install readline
pip install pyopenssl ordereddict

无法进入ssh ,debug 查看ws返回

如图

{"terminal:termupdate": {"scrollback": [], "term": 1, "screen": ["Traceback (most recent call last):                                                                        ", "  File \"/usr/local/lib/python2.7/site-packages/gateone-1.2.0-py2.7.egg/gateone/applications/terminal/plugi", "ns/ssh/scripts/ssh_connect.py\", line 23, in &lt;module&gt;                                                      ", "    from concurrent import futures                                                                        ", "ImportError: No module named concurrent                                                                   ", "<span class=\"\u2708cursor\"> <\/span>                                                                                                   ", "                                                                                                          "], "ratelimiter": false}}

缺少 concurrent模块,可单独运行python -c 'from concurrent import futures'没有错误
安装 pip install futures 也提示已经安装了
可能是项目存在了concurrent.py ,查找 find / -name concurrent.py ,果然
/usr/local/lib/python2.7/site-packages/tornado-4.5.2-py2.7-linux-x86_64.egg/tornado/concurrent.py
看来是tornado版本的问题,卸载

pip uninstall tornado

重新安装低版本

pip install tornado==2.4.1

查看版本

python -V
python -c "import tornado; print(tornado.version)"

启动悲剧了,起不来,重新安装gateone 发现请求tornado>4.0 并且自动搜索安装了最新版本!太坑爹了吧。看github上gateone好久都没啥更新了,对老版本的兼容性不好。
该问题暂时未解决。。。issue

参考
Ubuntu 安装配置 GateOne
开源堡垒机GateOne的安装、配置笔记
官方文档
下载地址
No module named ‘concurrent.futures’; ‘concurrent’ is not a package using Python 3.6.0
shellinabox:一款使用 AJAX 的基于 Web 的终端模拟器

发表评论 登录

Top