First install NVM
curl-o-https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | Bashsource ~/.BASHRC
Then install Nodejs
nvm ls-remote --lts Query the latest version number v8.9.0 (LTS: carbon) v8.9.1 (Lts: carbon) v8.9.2 (Lts: carbon) v8.9.3 (Lts: carbon) v8.9.4 (Lts: carbon) v8.10.0 (Lts: carbon) v8.11.0 (Lts: carbon) v8.11.1 ( Lts: carbon) v8.11.2 (Lts: carbon)- > v8.11.3 (Latest lts: carbon)
Install the latest version of 8.11.3
NVM Install 8.11.3
Then download WEBSSH2
git clone cd webssh2npm install--production modify WEBSSH Source to enable it to support secret login vim/usr/local/webssh2/server/socket.js# file at the beginning of add var fs = R Equire (' FS ') #修改 Conn.connect method Username: ' Root ', PrivateKey:fs.readFileSync ('/root/.ssh/id_rsa ') run WEBSSH2NPM start
Use your browser to open the HTTP://WEBSSH server ip:webssh port/ssh/host/ssh server IP
The default port number is 2222 you can also customize the port number in Config.json
http://192.168.1.7:2222/ssh/host/192.168.1.13
Simple and convenient
WebSSH2 using the implementation interface SSH