使用SSHTool将Putty私钥转换为OpenSSH私钥 [英] Use SSHTool to convert Putty Private Key to OpenSSH private key

查看:291
本文介绍了使用SSHTool将Putty私钥转换为OpenSSH私钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Java项目中,我使用服务器创建了SSH隧道.当前使用腻子专用密钥和plink对隧道进行身份验证.有人知道如何使用java SSHTool 库将腻子密钥转换为openssh密钥或使用SSHTool库使用腻子密钥创建ssh隧道?谢谢.

In my java project I create a SSH tunnel with a server. The tunnel is authenticated currently using a putty private key and plink. Does anybody know how to use the java SSHTool library to either convert a putty key to a openssh key or use SSHTool library to create a ssh tunnel using a putty key? Thank you.

推荐答案

Jsch仅接受opensh密钥,而不接受putty用于创建密钥的格式.您将不得不对其进行转换.使用puttygen.exe转换为openssh,然后在jsch中使用openssh密钥文件.

Jsch only accepts opensh keys, not the format that putty creates the keys in. You would have to convert them. Use puttygen.exe to convert to openssh, then use the openssh keyfile in jsch.

这篇关于使用SSHTool将Putty私钥转换为OpenSSH私钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆