1. WettyIntroduction
Wetty is an open source web-based SSHdeveloped using node. js and websockets . for more information on web-based SSH , please refer to Https://en.wikipedia.org/wiki/Web-based_SSH.
please refer to Https://github.com/krishnasrinivas/wetty for wetty information.
2.Environment Preparation
Because wetty is written using node. js , we have to install the relevant node. js environment beforehand. Please take a look at this blog post.
3. Wettyinstallation
Run the following command to install the
$ git clone https://github.com/krishnasrinivas/wettysudoinstall
The installation process may be faulty, please refer to the following possible problem handling.
4. Verification
After the installation is complete, then run the following command to start the wetty Service, monitor the port number
3000
Then open the browser, enter the http://127.0.0.1:3000, and then enter the password to log in successfully after the command line operation, the effect as shown,
5.possible problem handling5.1Installation TimesError: ' Use ' was not a member of ' Node::buffer '
Because I installed theNodeis a4.1.1version of, too new. andWettyoriginally dependent on thePty.jstoo old, causing problems with compilation. Modify the followingWettyin the source code directoryPackage.json, will depend on thePty.jschange to the latest version0.3.0(originally a^0.2.7-1). Save the file and run it againsudo npm installcommand.
5.2 SSHAccess failed
After starting the wetty Service, enter the http://127.0.0.1:3000 times in the browser a similar to the following "Ssh:connect to host localhost port 22:connection refused " error.
Run the following command to reinstall Openssl-client and openssl-server ,
sudo apt-get remove openssh-client openssh-sudo apt-get installopenssh-client Openssh-server
(done)
Wetty installation and usage instructions for Linux systems