Browse Source

Merge pull request #259 from sergeir82/fix-user-name

Fix ssh user name can not set in url parameter /ssh/:user. Every time…
pull/260/head
Cian Butler 5 years ago
committed by GitHub
parent
commit
3721ac1716
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      src/server/command/index.ts

17
src/server/command/index.ts

@ -31,14 +31,15 @@ export default (
args: !forcessh && localhost(host) args: !forcessh && localhost(host)
? loginOptions(command, remoteAddress) ? loginOptions(command, remoteAddress)
: sshOptions( : sshOptions(
urlArgs(referer, { { ...urlArgs(referer, {
host: address(referer, user, host), port: `${port}`,
port: `${port}`, pass: pass || '',
pass: pass || '', command,
command, auth,
auth, knownhosts,
knownhosts, }),
}), host: address(referer, user, host)
},
key key
), ),
user: user:

Loading…
Cancel
Save