SSH keys aren&#x27;t really used for encryption. Typical ssh uses some kind of DH construct, with the ssh keypairs just used for authentication.<p>However, stackexchange is the right place to go if you want to use asymmetric secret storage in git.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;stackexchange&#x2F;blackbox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;stackexchange&#x2F;blackbox</a>