差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
tech:webssh [2010/02/10 11:42] jonathantech:webssh [2010/02/10 14:55] (目前版本) jonathan
行 1: 行 1:
 +====== 安裝 Webssh 的方式 ======
  
 +===== Webssh Open source 方案 =====
 +  - http://www.modernmethod.com/sajax 
 +  - http://code.google.com/p/web-shell/
 +  - http://anyterm.org/index.html
 +  - http://antony.lesuisse.org/software/ajaxterm/
 +==== web-shell ====
 +<code sh>
 +su - root
 +cd /opt/webssh
 +wget http://web-shell.googlecode.com/files/WebShell-0.9.6.zip
 +unzip WebShell-0.9.6.zip
 +mv WebShell-0.9.6 WebShell
 +cd WebShell
 +./make_certificate.sh
 +./webshell.py --ssl-disable &
 +
 +cd /etc/httpd/conf.d/
 +vi webssh.conf
 +</code>
 +<file>
 +# web-shell
 +ProxyRequests Off
 +<Proxy *>
 +    Order deny,allow
 +    Allow from all
 +</Proxy>
 +ProxyPass /webshell/ http://localhost:8022/
 +ProxyPassReverse /webshell/ http://localhost:8022/
 +
 +# 設定只允許 127.0.0.1 與 140.92.xxx.xxx 可以連上
 +<Location /webshell>
 +    Order deny,allow
 +    Deny from all
 +    Allow from 127.0.0.1
 +    Allow from 140.92.
 +</Location>
 +</file>
 +  * https://xxx.xxx.xxx.xxx/webshell/
 +<note>
 +  * 使用 IE / Chrome 方向鍵<key>up</key><key>down</key><key><-</key><key>-></key>, <key><-backspace</key> 都會有問題
 +  * 建議使用 FireFox 然後 <key>CTRL</key>+<key>+</key>放大字型操作
 +</note>
 +
 +  * 如果想要開機或 webshell 無法服務時自動啟動, 可透過 **[[tech/trysrvtool|trysrvtool]]** 的 mon_service 來達成<code sh>
 +cd /opt/webssh
 +vi webshell.sh
 +</code><file>
 +#!/bin/bash
 +/opt/webssh/WebShell/webshell.py --ssl-disable &
 +service httpd restart
 +</file><code sh>
 +chmod a+x webshell.sh
 +
 +cd /opt/trysrvtool
 +cp mon_service.conf.default mon_service.conf
 +vi mon_service.conf
 +</code><file>
 +:
 +webshell        localhost       8022    HEAD / HTTP/1.0 Server: BaseHTTP        /opt/webssh/webshell.sh
 +</file><code sh>
 +vi /etc/crontab
 +</code><file>
 +:
 +# monitor service
 +* * * * * root /opt/trysrvtool/mon_service.pl
 +</file><code sh>
 +service crond restart
 +</code>
 +
 +
 +
 +{{tag>webssh ssh draft}}