You can clone with
Perhaps more of a question, but how does one extend the chainsaws node-binary returns? I can't seem to figure out an easy way to this from looking at the source.
One of the things I'm playing with is a native SSH client for node. I'd like to add methods that don't necessarily belong in node-binary itself, but wrap structures that appear frequently in the SSH protocol (like name-list).
You can check out how node-rfb is organized:
That does give inspiration on how to organize (thanks!), but I don't really see what I'm looking for specifically.
What I'm thinking about is things like this in node-rfb:
SSH has length-prefixed data/strings in many places. In the key exchange alone, it has 10 of these: http://tools.ietf.org/html/rfc4253#section-7.1
It'd be swell if I could add a method to the chainsaw for those small things you'd rather not break the chain for.
I couldn't get the signing to work properly for node-ssh-server but the key exchange works:
That looks great. Have a particular license in mind for your stuff? I may just try to work with that.
I'm still of the opinion this would be useful, though. :)
For example, in node-ssh-server:
Could look like: