Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 java 项目中,我创建了一个带有服务器的 SSH 隧道。隧道目前使用腻子私钥和 plink 进行身份验证。有人知道如何使用 java SSHTool库将 putty 密钥转换为 openssh 密钥或使用 SSHTool 库使用 putty 密钥创建 ssh 隧道吗?谢谢你。
Jsch 只接受 opensh 密钥,而不是 putty 创建密钥的格式。您必须转换它们。使用puttygen.exe转换成openssh,然后使用jsch中的openssh keyfile。