Wetty 是什么?
Wetty = Web + tty
作为系统管理员,如果你是在 Linux 桌面下,你可以用它像一个 GNOME 终端(或类似的)一样来连接远程服务器;如果你是在 Windows 下,你可以用它像使用 Putty 这样的 SSH 客户端一样来连接远程,然后同时可以在浏览器中上网并查收邮件等其它事情。
(LCTT 译注:简而言之,这是一个基于 Web 浏览器的远程终端)
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm# rpm -ivh epel-release-6-8.noarch.rpm
# yum install epel-release git nodejs npm -y
(LCTT 译注:对,没错,是用 node.js 编写的)
# git clone https://github.com/krishnasrinivas/wetty
# cd wetty # npm install
# node app.js -p 8080
# openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
(等待完成)
# nohup node app.js --sslkey key.pem --sslcert cert.pem -p 8080 &
# useradd <username> # Passwd <username>
输入你之前为 wetty 创建的证书然后访问。
到此结束!
译文出处:https://www.zcfy.cc/article/install-wetty-on-centos-or-rhel-6-x
via: http://www.unixmen.com/install-wetty-centosrhel-6-x/
作者:Debojyoti Das 译者:strugglingyouth 校对:wxy
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3549/viewspace-2819884/ ,如需转载,请注明出处,否则将追究法律责任。