WebSSH2 using the implementation interface SSH

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.