piping-ssh-web icon indicating copy to clipboard operation
piping-ssh-web copied to clipboard

Support for key based authentication

Open dhananjaysathe opened this issue 3 years ago • 1 comments

Amazing work!

Out of curiosity I noticed https://github.com/nwtgck/ssh-keygen-web is it possible to use something like this or just copy private key and use it to authenticate against a remote server rather than username password

dhananjaysathe avatar Aug 19 '21 04:08 dhananjaysathe

Thanks!

I also want key based authentication. This core SSH part of the project is highly based on SSHy, and it has a similar issue too: https://github.com/stuicey/SSHy/issues/27. SSHy is currently inactive, so we may need to implement it. The future implementation may be here: https://github.com/nwtgck/piping-ssh-web/blob/f0fc180af375e35e86295be7c383875851d87f4e/src/auth_handler.js#L62.

nwtgck avatar Aug 20 '21 00:08 nwtgck

Any plan for implementation?

ParkerOu avatar Apr 13 '23 05:04 ParkerOu

Hi,

  • plan1: Learn SSH key based authentication and implement
    • not easy to do that and not easy to ensure saftey
  • plan2: Transform openssh-client to wasm and use it
    • more ideal and safe
  • edit: plan3: use Go SSH client
    • more easy to use wasm but binary size is big

Do you use piping-ssh? Do you plan to use piping-ssh when key based authentication is implemented?

Someone using it is one of my motivation to implement. Another motivation is other major browsers other than Chromium-based ones implementing fetch() upload streaming feature.

nwtgck avatar Apr 13 '23 11:04 nwtgck

Trying to use piping-ssh in project. I have tried to use it, but I can't use it with my own server. Have researched https://github.com/nwtgck/piping-server/issues/696 Is it possible to use ssh client with bash or application based on piping-ssh?

Currently only key-based ssh is required. I will consider using key-based authentication in the future. Thanks for the quick reply!

ParkerOu avatar Apr 14 '23 01:04 ParkerOu

I have tried to use it, but I can't use it with my own server.

Do you want to self-host it? If not, Replit is best choice to have your own server. Click the fork button in https://replit.com/@nwtgck/piping to have the server.

Is it possible to use ssh client with bash or application based on piping-ssh?

Sorry, I'm no sure what you are going to do. Do you want to build a SSH client app running on browsers?

nwtgck avatar Apr 14 '23 10:04 nwtgck

I have tried to use it, but I can't use it with my own server.

Do you want to self-host it? If not, Replit is best choice to have your own server. Click the fork button in https://replit.com/@nwtgck/piping to have the server.

Yes, I want to self-host it.

Is it possible to use ssh client with bash or application based on piping-ssh?

Sorry, I'm no sure what you are going to do. Do you want to build a SSH client app running on browsers?

Sorry for my poor English. I want to build a SSH client via website or PC, Linux applications.

ParkerOu avatar Apr 14 '23 10:04 ParkerOu

@dhananjaysathe @ParkerOu

Now public key authentication supported!

I created this project from scratch with Go (golang.org/x/crypto/ssh) and WebAssembly. New version is already deployed: https://piping-ssh.nwtgck.org

nwtgck avatar Jun 14 '23 00:06 nwtgck