GithubHelp home page GithubHelp logo

Comments (12)

ping035627 avatar ping035627 commented on August 28, 2024

@huashengdun

from webssh.

huashengdun avatar huashengdun commented on August 28, 2024

Hi ping035627,
you can open multiple tabs on your browser, one tab for one session.
Or multiple windows, one window for one session.

from webssh.

ping035627 avatar ping035627 commented on August 28, 2024

@huashengdun , All the machines are in a local area network, only one machine can communicate with the outside network. I want to provide the function of Web terminal through this machine. Can this function be implemented through webssh?

from webssh.

huashengdun avatar huashengdun commented on August 28, 2024

You can install this app on the machine that can communicate with the outside network.
And enable ssh service on other machines in this local network.
Then you can use this app to connect to these machines with their local ip addresses.

from webssh.

ping035627 avatar ping035627 commented on August 28, 2024

@huashengdun, So webssh can connect more than one machine at the same time? The webssh app install on the machine that can communicate with the outside network as a agent? And how to configure which machine to connect in the app? Thanks very much!

from webssh.

huashengdun avatar huashengdun commented on August 28, 2024

Yes, it can connect to multiple machines at the same time.
But it can't be configured with any information which is needed to connect to your servers.
You just input these information into the form on the web page.

from webssh.

huashengdun avatar huashengdun commented on August 28, 2024

Actually you can configure your ssh information in your JavaScript code.
Use content scripts https://developer.chrome.com/extensions/content_scripts
to execute the code every time when the page loaded.

You can define many objects like that,

var machine1 = {
  hostname: 'hostname',
  port: 'port',
  username: 'username',
  password: 'password'
};

var machine2 = {
  hostname: 'hostname',
  port: 'port',
  username: 'username',
  password: 'password'
};

Then you connect to them by running

wssh.connect(machine1);
wssh.connect(machine2);

from webssh.

yanxiaowuchris avatar yanxiaowuchris commented on August 28, 2024

var machine1 = {
hostname: 'hostname',
port: 'port',
username: 'username',
password: 'password'
};
wssh.connect(machine1);
这种方式,js运行在哪里?

from webssh.

huashengdun avatar huashengdun commented on August 28, 2024

@yanxiaowuchris
在浏览器的控制台(console)运行。
Ctrl + Shift + I, 然后点击console进入控制台。

from webssh.

yanxiaowuchris avatar yanxiaowuchris commented on August 28, 2024

非常感谢,我已经解决问题啦

from webssh.

aryanguenthner avatar aryanguenthner commented on August 28, 2024

Feature Request - X Forwarding

from webssh.

huashengdun avatar huashengdun commented on August 28, 2024

@aryanguenthner
Check option xheaders, X-Forwarded-For and X-Forwarded-Port supported.

from webssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.