Giter Club home page Giter Club logo

Comments (10)

cognitivegears avatar cognitivegears commented on June 10, 2024 2

By the way - as a side note, I'm not sure whether it needs an upload function - the .pub is pretty short (90 characters including prefix is all that's needed, + whatever they use for their email/attribute if there is one). Could probably just support pasting that into a text field? That's what sites like github do anyway.

from enigma-bbs.

NuSkooler avatar NuSkooler commented on June 10, 2024 1

@cognitivegears I agree. I think the only requirement needs to be over an existing secure connection.

from enigma-bbs.

NuSkooler avatar NuSkooler commented on June 10, 2024 1

@cognitivegears

That's a bit of a catch-22, but not much of one, since they can either upload the .pub when logging in as new via ssh, or just have to at least one time do password auth before switching to public key. So not a big deal.

Yep, but without it, one can technically MITM and put in their own SSH Pub Key instead.

from enigma-bbs.

NuSkooler avatar NuSkooler commented on June 10, 2024

@jejacks0n It's a placeholder as there aren't currently any BBS clients that support public key authentication.

I'd love a PR, however!

Off the top of my head, I think you'd really only need to implement validatePubKey which you can see in the SSH2 documentation, should be fairly trivial.

Then, create a simple ssh_config.js or similar mod inheriting MenuModule (which you'll see is the beef of most of enig) for the user to upload a public key.

One challenge is for it to be secure, they'd need to do this over a secure connection such as SSH (un/pass), or secure WebSocket, so you'd want to gate the menu with an acs check.

I can provide more details if you're going to take a shot at it!

from enigma-bbs.

tracker1 avatar tracker1 commented on June 10, 2024

could test with ssh from a regular ptty terminal.. ssh user@bbsname assuming the user previously uploaded their public key for auth.

from enigma-bbs.

NuSkooler avatar NuSkooler commented on June 10, 2024

Update on this: I will be adding PublicKey authentication to the board and to https://github.com/mkrueger/icy_term as well in the near-ish future.

from enigma-bbs.

cognitivegears avatar cognitivegears commented on June 10, 2024

@cognitivegears I agree. I think the only requirement needs to be over an existing secure connection.

That's a bit of a catch-22, but not much of one, since they can either upload the .pub when logging in as new via ssh, or just have to at least one time do password auth before switching to public key. So not a big deal.

from enigma-bbs.

cognitivegears avatar cognitivegears commented on June 10, 2024

By the way, this is a little off-topic but I was thinking, I don't believe there is anything in the spec / ssh library that wouldn't let us just accept any user - that is, allow the connection regardless of any user/pw etc... which could be interesting, if we then showed the unauthenticated login screen. Sorta like an inner authentication mechanism like can be done with WiFi etc protocols. I.e encrypt the channel but no Authn initially.

I know sounds crazy, but the reason to do that would be able to offer non logged in services via ssh... Showing the login menu, forgot password, etc.

The only downside I can think of is that I believe most or all existing clients just assume that some authn needs to happen so present pw prompt before even being challenged (when not using a public key flow anyway.) still it works, users would just have to type anything on those clients. And that could be suggested in clients like Icyterm as well.

Probably out of scope for this issue, but just wanted to mention in case it's useful someday.

from enigma-bbs.

NuSkooler avatar NuSkooler commented on June 10, 2024

@cognitivegears this should already be possible with some tweaks. Users can already SSH in with +op defined username passwords (new/new is there by default). We could have "forgot/forgot" or whatever allowing them to interact with specific screens.

from enigma-bbs.

tracker1 avatar tracker1 commented on June 10, 2024

Minor thought... Ubuntu-Server offers the option to import your public key at install, including from github. Could offer something similar at login/creation to import github key(s).

from enigma-bbs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.