mscdex / mscdex/ssh2

Proxy server with publicKey auth

Open
#1,262 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
JavaScript
Stars
5.8k
Forks
734
PR merge metrics
No merged PRs in 30d

Description

Hello there,

Is there a way to forward the publicKey to other ssh server ?

Something like that ?

			 client.on('authentication', (ctx) => {
				else if(ctx.method == 'publickey'){
					connect({
						username 		: ctx.username,
						publicKey 		: ctx.key.data
					}, function(err, session){
						if(err) return ctx.reject()
						ctx.accept()
					})
				}

Not an expert, maybe it's crazy x)

Thanks for your help !

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the client.on('authentication') callback and the connect({ username, publicKey }) example in the issue, then trace the client and server public-key authentication flow. Done means determining whether this proxy behavior is supported and documenting the required behavior or limitations with a reproducible authentication example.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.