顯示頁面舊版反向連結Fold/unfold all回到頁頂 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== 安裝 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}} tech/webssh.txt 上一次變更: 2010/02/10 06:55由 jonathan