3 ms·
It's like a reverse gpg-agent. But I trust gpg to provide SSH keys more than random script to use SSH keys to provide encryption. A random article with explana
by viraptor 9y ago
It's like a reverse gpg-agent. But I trust gpg to provide SSH keys more than random script to use SSH keys to provide encryption.
A random article with explanation: https://ryanlue.com/posts/2017-06-29-gpg-for-ssh-auth https://ryanlue.com/posts/2017-06-29-gpg-for-ssh-auth
Edit: Yeah, the quoting is missing. The password with backslashes, spaces or other interesting bits will fail.
- georgyo 9y agoI understand the point you are trying to make, but a RSA key is a RSA key. The only benefit of gpg here is for things longer than a password. The script is encrypting the password directly with the RSA key. The performance and security will be weaker on things much longer than a password.
- schoen 9y ago> I understand the point you are trying to make, but a RSA key is a RSA key. Not really. http://cs.wellesley.edu/~cs310/lectures/26_rsa_slides_handouts.pdf http://cs.wellesley.edu/~cs310/lectures/26_rsa_slides_handou... https://crypto.stanford.edu/~dabo/papers/RSA-survey.pdf https://crypto.stanford.edu/~dabo/papers/RSA-survey.pdf Some of the vulnerable systems that have been attacked this way basically were built on the premise than an RSA key is an RSA key. But an RSA implementation that's secure for one purpose might not be secure for another purpose, for example with malleability. https://en.wikipedia.org/wiki/Malleability_%28cryptography%29#Example_malleable_cryptosystems https://en.wikipedia.org/wiki/Malleability_%28cryptography%2...