群晖搭建webssh

  1. 拷贝工程到系统根,然后需要赋予权限 sudo chmod 777 -R WebSSH2/

  2. git clone https://github.com/zhaocundang/WebSSH2.git

  3. depends : node.js v8

npm ERR! webpack-cli@3.2.1 postinstall: lightercollective
npm ERR! spawn ENOENT
npm ERR!

To install:
admin@DiskStation:/volume1/web/webssh/WebSSH2/app$ sudo npm i -g lightercollective
/volume1/@appstore/Node.js_v8/usr/local/bin/lightercollective -> /volume1/@appstore/Node.js_v8/usr/local/lib/node_modules/lightercollective/index.js

  • lightercollective@0.3.0
    updated 1 package in 1.942s
  1. cd /WebSSH/app/

  2. sudo npm install

  3. cp WebSSH2/app/package.json ../

    sudo npm start

6.开机自启: sudo vim /etc/rc append this: (在末尾exit0 之前) cd /WebSSH2/ && npm start

  1. how to use?

in browser : http://10.168.1.241:2222/ssh/host/127.0.0.1

posted @ 2019-04-21 18:36  zhaocundang  阅读(3186)  评论(1编辑  收藏  举报