转:http://jingyan.baidu.com/article/73c3ce28c261bde50243d978.html
http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=22785603&id=3888819
一,从PuTTyGen生成的private key转换成OpenSSH key-gen的key。
puttygen supports exporting to an OpenSSH compatible format.
Create the RFC 4716 version of the public key using ssh-keygen
ssh-keygen -e -f ~/.ssh/id_dsa > ~/.ssh/id_dsa_com.pub
Convert the RFC 4716 version of the public key to the OpenSSH format:
ssh-keygen -i -f ~/.ssh/id_dsa_com.pub > ~/.ssh/id_dsa.pub
1. 打开PuttyGen软件
2. 点击load按钮。导入puttygen的private key。输入passphrase。
3. 点击Conversions下拉菜单,选中Export OpenSSH key。输入要保存的文件名,例如id_rsa。
4. 用notepad++或者其他便捷编辑工具打开保存的OpenSSH key文件。拷贝内容到Linux的~/.ssh/下,并保存为id_rsa。
5. 更改id_rsa的权限为600。chmod 600 ~/.ssh/id_rsa。
6. 现在就可以用这个OpenSSH的private keygen登陆了。而且不需要选择文件路径。ssh会自动寻找并应用。
7. 如何避免输入passphrace?
二, 从OpenSSH key-gen生成的key转换成PUTTYgen的private key。
-------------------------------------------------------------------------------------------------------------------------
三,如何临时禁止openssh验证id_rsa?
使用IdentityFile=none参数。
http://stackoverflow.com/questions/2224066/how-to-convert-ssh-keypairs-generated-using-puttygenwindows-into-key-pairs-use
如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术
转载请注明:putty密钥与openssh 出自老鄢博客 | 欢迎分享