如何使用SSH密钥安装托管在私有存储库中的Discourse插件?

IIRC there are problems if you clone directly (I think this), that’s why using the tokens to clone are the recommended way.

But I think you may want to give this a shot, if you want to use SSH keys: