效果
192.168.0.103是树莓派ip
通过浏览器:http://WebSSH服务器IP:WebSSH端口/ssh/host/任意可ping通终端IP
开始部署
安装 NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
source ~/.bashrc
安装稳定版 Nodejs
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
# 版本号随时可能改变,请使用 nvm ls-remote --lts 查询最新版本号。
下载 WebSSH2
git clone https://github.com/billchurch/WebSSH2
cd WebSSH2-master/app
npm init 初始化,一路敲击回车 有需要输入yes的就输入yes
npm install --production 这里我第一次安装失败了Ctrl+c退出,重新安装
运行 Webssh2
npm start
运行效果
浏览器效果