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

Support for key based authentication #5

Closed
dhananjaysathe opened this issue Aug 19, 2021 · 7 comments
Closed

Support for key based authentication #5

dhananjaysathe opened this issue Aug 19, 2021 · 7 comments

Comments

@dhananjaysathe
Copy link

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

@nwtgck
Copy link
Owner

nwtgck commented Aug 20, 2021

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: stuicey/SSHy#27. SSHy is currently inactive, so we may need to implement it. The future implementation may be here:

// TODO: implement follow on tries for authentication (keyboard/public key)
.

@ParkerOu
Copy link

Any plan for implementation?

@nwtgck
Copy link
Owner

nwtgck commented Apr 13, 2023

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.

@ParkerOu
Copy link

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 nwtgck/piping-server#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!

@nwtgck
Copy link
Owner

nwtgck commented Apr 14, 2023

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?

@ParkerOu
Copy link

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.

@nwtgck
Copy link
Owner

nwtgck commented Jun 14, 2023

@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 nwtgck closed this as completed Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants