!!!

<div class='note info'>Webssh2可以让用户不使用putty等ssh软件连接,直接网页使用终端</div>

!!!

!!!

<div class='note warning'>本教程摘取腾讯云社区,仅用于个人方便学习</div>

!!!

[社区原文][1]

1.安装NVM

-------

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash

source ~/.bashrc

nvm ls-remote --lts 版本号随时可能改变,查询最新版本号

v8.13.0 (LTS: Carbon)

v8.14.0 (LTS: Carbon)

v8.14.1 (Latest LTS: Carbon)

nvm install 8.14.1

2.安装webssh2

-----------

git clone https://github.com/billchurch/WebSSH2

cd WebSSH2/app

npm install --production

3.使用screen保持后台运行

----------------

yum install -y screen

screen -S webssh2

cd webssh2/app

npm start

4.通过如下地址即可访问ip地址为IP的终端

----------------------

http://IP:Port/ssh/host/IP

!!!

<div class='note warning'>也可以通过修改config.json中的listen.port修改端口。</div>

!!!

[1]: https://cloud.tencent.com/developer/article/1662707