Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy SSH connection to multiple servers from the same browser #348

Open
zouguanrong opened this issue Nov 14, 2023 · 0 comments
Open

Proxy SSH connection to multiple servers from the same browser #348

zouguanrong opened this issue Nov 14, 2023 · 0 comments
Assignees
Labels

Comments

@zouguanrong
Copy link

What happened?

for example:
Same Browser Access:
http://localhost:2222/ssh/host/172.16.7.18
http://localhost:2222/ssh/host/172.16.7.19
In reality only the first accessed url will have the authentication username and password popup, subsequent url accesses will use the data from the first visit (req.headers.authorization).
(req.headers.authorization) is always the first time data is fetched.

Node Version

v18.16.1

NPM Version

9.5.1

Server OS Version

Ubuntu 22.04.3 LTS

WebSSH2 release version

0.5.0-pre-5

OS and Version of SSH server

No response

Browser Version

No response

Relevant log output

(req.headers.authorization) is always the first time data is fetched.
code:
function auth (req) {
  if (!req) {
    throw new TypeError('argument req is required')
  }

  if (typeof req !== 'object') {
    throw new TypeError('argument req is required to be an object')
  }

  // get header
  var header = getAuthorization(req)

  // parse header
  return parse(header)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants