openQRM插件sshterm又叫ajaxterm。是一个基于web界面的console。
今天花了半天将之完全配置好。
测试环境:
服务器端 openQRM4.9;os:rhel 6
客户端 centos 5.5
1、下载安装ajaxterm:
wget http://antony.lesuisse.org/software/ajaxterm/files/Ajaxterm-0.10.tar.gz
tar xvzf Ajaxterm-0.10.tar.gz
mv Ajaxterm-0.10 /usr/local
cd /usr/local
ln -s Ajaxterm-0.10 ajaxterm
2、配置apache(Apache/2.2.3) 的https转发:
我的服务器上已经默认载入了proxy 以及 ssl模块。
在/etc/httpd/conf.d/ssl.conf文件中<VirtualHost _default_:443>块中添加如下代码。
ServerName localhost
ProxyRequests off
<Proxy *>
AuthType Basic
AuthName "remote Shell Acces"
AuthUserFile /etc/httpd/passwd.host.example.net
Require user root
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8022/
ProxyPassReverse / http://localhost:8022/
生成:passwd.host.example.net密码文件
cd /etc/httpd
htpasswd -c passwd.host.example.net root //用户名
chown apache:apache passwd.host.example.net //密码文件
chmod 400 passwd.host.example.net
3、重启http服务器,并启动ajaxterm。
service httpd restart
cd /usr/local/ajaxtterm
./ajaxterm.py
4、这个时候你就可以分别通过一下方式对ajaxterm进行访问。
http://localhost:8022/
http://localhost:443/
http://10.167.14.102:443/ //这个地址可以在远程机器上进行访问。
https://localhost
5、以上ajaxterm的配置,并不能使ajaxterm与openqrm的完美结合。因为在openQRM使用ajaxterm来访问客户端的时候,必须要打开一个新的浏览器窗口,输入
http://10.167.14.102:443/
而不能通过在openqrm的sshterm的管理界面直接点选某个客户端进行连接。
因为在sshterm的管理界面直接点选某个客户端。使用的URL是:
https://IP:8022/
修改方法如下。
首先修改ssl.conf文件.
1)修改https默认监听端口
Listen 443 ----> Listen 8022
<VirtualHost _default_:443> -- > <VirtualHost _default_:8022>
ServerName localhost --> ServerName IP(这里我使用10.167.14.102)
ProxyPass / http://localhost:8022/ ---> 8023 //这里的8023,用来替换ajaxterm的监听端口8022.
ProxyPassReverse / http://localhost:8022/ --> 8023
2)修改ajaxterm的端口。
cat -n ajaxterm.py | grep 8022 //查看8022所在的行。
vi ajaxterm.py
找到8022 所在的行,将之替换为8023
以上修改完了之后,重启服务。
之后,就可以在openqrm的sshterm的管理界面,直接勾选并登陆ajaxterm服务器。
说明:
1、将ajaxterm设置为开机自启动
/usr/local/ajaxterm/ajaxterm.py &
cat >> /etc/rc.local <<EOF9
/usr/local/ajaxterm/ajaxterm.py &
EOF9
2、若提高安全性。
可以设置ssl密钥。
参考地址:
http://coolerfeng.blog.51cto.com/133059/49556/
以上为原创,转载请注明出处!!!
分享到:
相关推荐
4. **定制化**:用户可以根据自己的需求对GSI-SSHTerm进行配置,以适应特定的网格环境和安全策略。 5. **源代码开放**:作为开源项目,用户可以查看和修改源代码,这促进了社区的发展和功能改进。 **开源软件的优势...
面向多场景应用的光网络通感一体化架构和关键技术方案研究
该项目是基于Vue框架的Digital Twin开发设计源码,由38个文件组成,涉及TypeScript、JavaScript、Vue、CSS、HTML等多种编程语言,包括9个TypeScript文件、6个JavaScript文件、5个JSON文件、5个Vue文件、3个SVG文件、2个Markdown文件、2个WebAssembly文件、1个Git忽略文件、1个HTML文件和1个CSS文件。该源码旨在提供大学生在线学术交流的平台,助力学术创新与协作。
该项目是一款基于Java和C++技术的易涂鸦设计平台源码,包含487个文件,其中Java源文件226个,PNG图片文件135个,XML配置文件88个,其他类型文件包括brush文件7个,gradle文件4个,jpg文件4个,gitignore文件3个,properties文件3个,md文件2个,txt文件2个。该平台专注于涂鸦功能,为用户提供便捷的设计与绘图体验。
该项目是一款基于HTML、CSS和JavaScript的多人在线知识交流平台博客,设计源码包含451个文件,其中包括149个Java文件、89个JavaScript文件、60个CSS文件、42个Class文件、23个PNG图片文件、20个XML文件、17个HTML文件、12个JPG文件、6个JSON文件、5个Map文件,旨在为用户提供一个互动的知识分享与交流空间。
开关电源工作原理及电路图技术资料开发设计用的重要资料.zip
该项目是一款基于Plpgsql与Java开发的学生管理系统源码,总计包含190个文件。其中,165个为Java源文件,11个为XML配置文件,4个为YAML配置文件,2个为Git忽略文件,1个为Dockerfile,1个为LICENSE文件,1个为Markdown文件,1个为JSON文件,1个为Maven命令行脚本,以及1个为Windows命令文件。该系统旨在提供全面的学生信息管理功能。
该源码为基于Vue2、swiper和elementUI构建的电商购物网站前台设计,包含223个文件,其中包括121个PNG图片、28个JPG图片、28个Vue组件文件、22个JavaScript文件、8个JSON文件、6个CSS文件、4个JPEG图片、2个HTML文件、1个gitignore文件和1个Markdown文件。项目适用于搭建功能完善的电商购物网站前台界面。
WPF主题和语言切换功能示例
钳口校准器_三维3D设计图纸.zip
lstm时间序列预测 基于pytorch搭建多特征CNN-LSTM时间序列预测
技术资料分享技术资料笔记本大拆解图重要技术.zip
耐热链轮输送线_三维3D设计图纸.zip
本项目为基于Java和Kotlin开发的Android经典蓝牙框架设计源码,共计66个文件,涵盖17个Java源文件、16个XML布局文件、10个PNG资源文件、4个Gradle构建文件,同时包含必要的Git忽略文件、属性文件和项目规范文件。该框架支持Android传统蓝牙通信,适用于蓝牙应用开发需求。
该项目为华夏南山松养老保险系统设计源码,采用多语言开发,包含157个文件,涵盖38个SCSS样式文件、29个JavaScript脚本文件、20个Markdown文档、15个HTML页面、11个XML配置文件、9个JSON数据文件、6个C/C++头文件、4个MATLAB脚本文件、3个CSS样式文件以及3个PNG图片文件。该系统以JavaScript为主要开发语言,并整合了C、MATLAB、CSS、C++、C#、Java等多种编程语言,旨在提供全面的养老保险管理解决方案。
yuv播放器,用于多媒体开发,查看yuv格式的文件
一款纯VF控制的变频器方案方案说明:可做0.2KW7.5KW 220V,0.2KW75KW 380V,富士通MB90F462A LQFP64单片机控制,可提供源码及电路原理图,PCB图。
本项目是一款基于JetBrains平台的微信小程序插件设计源码,涉及Kotlin、TypeScript、HTML、Java等多语言开发。源码文件共计248个,其中Kotlin文件145个,XML文件19个,TypeScript文件18个,SVG文件13个,模板文件10个,HTML文件9个,Java文件8个,属性文件7个,FT文件6个,JSON文件3个。该插件致力于提升微信小程序的开发效率与用户体验。
【Python游戏开发】扫雷游戏demo图片资源素材
转子自动化焊接检测工作台_三维3D设计图纸.zip