Chinaunix首页 | 论坛 | 博客
  • 博客访问: 574317
  • 博文数量: 155
  • 博客积分: 7055
  • 博客等级: 少将
  • 技术积分: 1700
  • 用 户 组: 普通用户
  • 注册时间: 2004-11-22 11:40
文章分类

全部博文(155)

文章存档

2016年(1)

2011年(2)

2010年(1)

2009年(2)

2008年(9)

2007年(39)

2006年(58)

2005年(38)

2004年(5)

我的朋友

分类: LINUX

2006-06-05 22:50:12

在看SSH, the Secure Shell, 2nd Edition时,书中提到了

Authentication by Cryptographic Key
即通过密钥对进行认证,不使用输入密码的方式。建立一个密钥/公钥对,密钥只自己有,公钥放在ssh server上,这样拥有密钥即可通过认证。

我试了试
在Linux下面是没有问题的,毕竟ssh client and ssh server 是配套嘀

在windows下面用, secretCRT 和 SSH Secure Shell Client 软件时,总是不成功

后来终于耐心地看了secretCRT的帮助:

Note: SecureCRT cannot use identity files generated by UNIX SSH2 software. The private key file format used by UNIX SSH2 software is currently undocumented and therefore incompatible.

而使用secretCRT自己生成的identity files(pri/pub key pairs),在把pubkey(这里是identity.pub)放到ssh server上时,也是不能直接用嘀,要作格式的转换:


ssh-keygen -X -f ~/.ssh/identity.pub >> authorized_keys

这样就OK了。




阅读(3848) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~