You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reacted by Casper Smits, Michael Gerlach, dvodvo, g19i85g, Fredrik Sundqvist, Camden Narzt and Nate Vack
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:
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.
Activity
njvack commentedon Nov 3, 2026
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
sshprocess 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.