Instructions:
npm install express faye-websocket ssh2 term.js
- Create a
public
subdirectory - Place
client.htm
inpublic
- Edit the ssh connection details in
server.js
. See the documentation for theconnect()
method in the ssh2 readme for more information. - Start the server with
node server.js
- Visit http://localhost:8000/client.htm in a WebSocket-capable browser
Two errors in server.js:
var ssh = require('ssh2');
tovar { Client } = require('ssh2');
conn = new ssh();
toconn = new Client();
Everything else should work smoothly.
Many thanks!!!!