一
環境配置
yum install openssl python pyOpenSSL
wget https://files.cnblogs.com/files/pariese/WebShell-0.9.6.zip
unzip WebShell-0.9.6.zip
cd WebShell-0.9.6
生成SSL的證書
./make_certificate.sh
一步就行了,很簡單。
運行WebShell
執行:
[root@www webshell]# ./webshell.py
WebShell (https) at 0.0.0.0, port 8022
提示現在可以連接 https://IP:8022/ 了,注意使用https協議。
二
安裝PIP
wget http://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
第六、修改GateOne配置遠程管理
/opt/gateone/server.conf
dtach = False
origins = "http://localhost;https://localhost;http://127.0.0.1;https://127.0.0.1;https://47.94.11.195:4200"
session_timeout = "20m"
如果你想讓其後臺運行,請使用serveri來啓動
/etc/init.d/gateone start