web ssh方案Gateone

一 安裝環境

操做系統:centos 6.3 x64python

Python版本:2.6.6c++

Tornado版本:2.4.1git

二 安裝部署

導入第三方軟件源shell

rpm -Uvh http://mirrors.ispros.com.bd/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm


 

安裝依賴包centos

yum install -y python python-pip gcc python-devel setuptool python-pam openssl openssl-devel wget git make gcc-c++ patch pam_radius dtach


 

用pip安裝軟件服務器

mv /usr/bin/pip-python /usr/bin/pip
pip install tornado pyopenssl kerberos



安裝tornadosession

rpm -ivh tornado-2.4-1.noarch.rpm



安裝Imagingtornado

wget //effbot.org/downloads/Imaging-1.1.7.tar.gz
tar -zxvf Imaging-1.1.7.tar.gz
cd Imaging-1.1.7
python setup.py install


 

安裝ordereddict工具

wget https://pypi.python.org/packages/source/o/ordereddict/ordereddict-1.1.tar.gz#md5=a0ed854ee442051b249bfad0f638bbec --no-check-certificate
cd ordereddict-1.1
python setup.py install


 

安裝gateonespa

rpm -ivh gateone-1.1-1.noarch.rpm


 

三 gateone 配置

Gateone默認安裝路徑爲 /opt/gateone

運行gateone: 

/opt/gateone/gateone.py


ctrl+c


關閉gateone進程

首次運行gateone 會在/opt/gateone 下生成 server.conf 配置文件

 

修改server.conf

session_timeout = 「1d」
origins = "http://localhost;https://localhost;http://127.0.0.1;https://127.0.0.1」 後面加上 https://本機ip地址


 

四 gateone 使用

在遊覽器上 輸入 https://服務器ip地址


點擊 仍然繼續


左側爲登入信息, 輸入信息等, 右側爲 gateone 選項設置

右側選項一次爲:

第一個:關閉當前會話

第二個:添加一個新會話窗口

第三個:信息和工具

第四個:設置

第五個:分屏顯示

相關文章
相關標籤/搜索