... or if not, can you provide me link or RFC number to full algorithm (from getting ASCII encoded Private key file/string to generation of ASCII encoded public key file/string).
To show you a bigger picture - I started using a pylibssh2 library. This library has a method - userauth_publickey_fromfile (it raises NotImplementedException, but when you force launching python binding - it works). The problem is that this method wants private key (good) and public key (hell knows why). Of course, I can pass both of those keys as argumets to my functions, but I think it is unnecessary, and I don't want to expect one more variable just for that. So I want to generate public key from private one by myself.
Maybe I'm missing something in pylibssh2 or even in libssh2 itself (I can write bindings for that as well) ?
Thanks for any help!
Do you need the answer to be strictly python? You can do this with ssh-keygen -y -f privatekey
Is there any way to generate public SSH key from private one using Python?