Skip to content

should have an openssh backend #563

Open

Description

@braun2morrow

sshkit currently depends on 'net-ssh' for connecting to remote hosts. net-ssh is reimplementing ssh in pure ruby, and failing as badly as as one would expect on the security front: It still supports cryptography that's obsolete and broken, it does not implement current algorithms (in particular no post-quantum ones), it does not support private keys on hardware tokens, it does not check hostkeys by default, and probably lots more...

Therefore, sshkit should be able to call out to the "ssh" binary and thus leave the crypto to the professionals.

Activity

  1. njvack commented on Nov 3, 2026

    @njvack

    I have, at various times, had the same hankering. So today I had Claude try its hand at making an OpenSSH backend and it was surprisingly successful at this:

    https://github.com/njvack/sshkit-openssh

    It uses a ControlMaster socket to keep you from needing to continually reconnect, and then runs a new ssh process for each command. In my limited testing, it works fine.

    Like the README says, it's 100% experimental. I have neither hand-written nor hand-edited any of it, including the README.

    It probably will not work out of the box on Windows, maybe not even with WSL.

    I have no intent whatsoever of providing actual support for this; it's just a demonstration that this is doable with a few hundred lines of code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions