webssh2 | Web SSH Client using ssh2 socket.io xterm.js | Websocket library

 by   billchurch JavaScript Version: webssh2-v0.4.7-pre-4 License: MIT

kandi X-RAY | webssh2 Summary

kandi X-RAY | webssh2 Summary

webssh2 is a JavaScript library typically used in Networking, Websocket applications. webssh2 has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Web SSH Client using ssh2, socket.io, xterm.js, and express. A bare bones example of an HTML5 web-based terminal emulator and SSH client. We use SSH2 as a client on a host to proxy a Websocket / Socket.io connection to a SSH2 server.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              webssh2 has a medium active ecosystem.
              It has 1971 star(s) with 471 fork(s). There are 68 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 28 open issues and 169 have been closed. On average issues are closed in 96 days. There are 7 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of webssh2 is webssh2-v0.4.7-pre-4

            kandi-Quality Quality

              webssh2 has 0 bugs and 0 code smells.

            kandi-Security Security

              webssh2 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              webssh2 code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              webssh2 is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              webssh2 releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              webssh2 saves you 159 person hours of effort in developing the same functionality from scratch.
              It has 395 lines of code, 0 functions and 11 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed webssh2 and discovered the below as its top functions. This is intended to give you an instant insight into webssh2 implemented functionality, and help decide if they suit your requirements.
            • Setup the websocket connection .
            • BasicAuthAuth handler
            • Sets default credentials
            • Parses true boolean
            • return rrout handler
            • This function is used to introspect
            • this is an internal function
            Get all kandi verified functions for this library.

            webssh2 Key Features

            No Key Features are available at this moment for webssh2.

            webssh2 Examples and Code Snippets

            No Code Snippets are available at this moment for webssh2.

            Community Discussions

            QUESTION

            how to create interactive ssh terminal and enter commands from the browser using Node JS in a Meteor app
            Asked 2020-May-06 at 09:46

            I'm trying to create a web page where the user can authenticate to a remote server via ssh with username/password, and then interact with the remote server.

            I'm not looking to create a full interactive terminal: the app server will execute a limited set of commands based on user input and then pass the responses back to the browser.

            Different users should interact with different ssh sessions.

            My app is built in Meteor 1.8.1, so the back end runs under Node JS, version 9.16.0. It's deployed to Ubuntu using Phusion Passenger.

            I have looked at several packages that can create an interactive ssh session but I am missing something basic about how to use them.

            For example https://github.com/mscdex/ssh2#start-an-interactive-shell-session

            The example shows this code:

            ...

            ANSWER

            Answered 2020-May-06 at 09:46

            I got this working by following these instructions for creating an interactive terminal in the browser and these instructions for using socket.io with Meteor.

            Both sets of instructions needed some updating due to changes in packages:

            • meteor-node-stubs now uses stream-http instead of http-browserify https://github.com/meteor/node-stubs/issues/14 so don't use the hack for socket

            • xterm addons (fit) are now separate packages

            • xterm API has changed, use term.onData(...) instead of term.on('data'...)

            I used these packages:

            ssh2

            xterm

            xterm-addon-fit

            socket.io

            socket.io-client

            and also had to uninstall meteor-mode-stubs and reinstall it to get a recent version that doesn't rely on the Buffer polyfill.

            Here's my code.

            Front end:

            myterminal.html

            Source https://stackoverflow.com/questions/61607823

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install webssh2

            You can download it from GitHub.

            Support

            As of 0.4.0, we're trying our best to conform to the Airbnb Javascript Style Guide. I'm hoping this will make contributions easier and keep the code readable. I love shortcuts more than anyone but I've found when making changes to code I've not looked at in a while, it can take me a few momements to deconstruct what was being done due to readbility issues. While I don't agree with every decision in the style guide (semi-colons, yuk), it is a good base to keep the code consistent. If you've not used it before, I recommend installing the vscode extensions for that and Prettier and getting familiar. The autocorrections are great (especially if you hate dealing with semi-colons...). All contributions are welcome, all may not make it into a release... To increase the chances of your contribution making it into a release, try your best to conform to the style guides and targets of the project.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Websocket Libraries

            netty

            by netty

            ws

            by websockets

            websocket

            by gorilla

            websocketd

            by joewalnes

            koel

            by koel

            Try Top Libraries by billchurch

            bhyve-mqtt

            by billchurchJavaScript

            sublime-iRules

            by billchurchPython

            openssl.sh

            by billchurchShell

            bigip-bootstrap

            by billchurchShell

            read-config-ng

            by billchurchJavaScript