首页 > Web开发 > 详细

web版的tty

时间:2017-08-13 18:34:38      阅读:239      评论:0      收藏:0      [点我收藏+]
 
1、wetty
Wetty是使用Node.js和websockets开发的一个开源`Web-based SSH`
2、环境配置
2.1、配置epel源
1 [epel]
2 name=epel
3 baseurl=https://mirrors.aliyun.com/epel/7Server/x86_64/
4 gpgcheck=0

2.2、安装依赖关系

1 yum install git nodejs npm

2.3、克隆下载程序包

1 git clone https://github.com/krishnasrinivas/wetty
2 cd wetty
3 npm install

2.4、配置https证书

1 openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes

2.5、使用Https启动wetty

1 node app.js --sslkey key.pem --sslcert cert.pem -p 8001

注意:端口可以随意指定

2.6、浏览器访问web版tty
1 iptables -F
2 https://172.17.0.9:8001

 

web版的tty

原文:http://www.cnblogs.com/xuelong3/p/7354218.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!