我的openssh版本号:
[root@localhost ssh].# rpm -.qa openssh 健康
openssh-3.5p1.-6.
[root@localhos.t ssh]# rpm. -qa |grep openssh投资
open.ssh-3.5p1-6.
openssh-server-.3.5p1-6--------------彩票
openssh-askpass-gnome.-3.5p1-6..
open.ssh-clients-3.5p1-6外贸
openssh-askpass-3.5p.1-6.
我实验中的环境: 服务端和客.户端都是同一台pc. 婚庆
下面是我做的东.西和出现的问题:.
[root@localhos.t. .ssh]# ssh-keygen -d 杀毒
G.enerating public/private dsa ke.y pair..
Enter file in which to save the key (/root/.ssh/id_dsa): /home/admin/.s.sh/id_dsaEn.ter passphrase (empty for no passph.rase): 美容
E.nter same. passphrase again:.
Your identification has .been saved in /hom.e/admin/.ssh/id_dsa..
Your public key has been saved .in /home/admin/.ssh/id._dsa.pub. 健康
The key f.ingerprint is:.
5c:70:4f:b5:06:b2:b3:.25:.d0:e9:91:b3:00:4a:c1:63
root@localhost.localdomain 女人
[root@localhost .ss.h]# ls.
id_dsa . id_dsa.pub[成人用品]
[
root@l.ocalhost .ssh]# mv id_dsa..pub authorized_key投资
[root@localhost .ssh]# chmod 644 a.uthorize.d_key.
[root@localhost .ssh].# /etc/rc.d/init.d./sshd restart.
停止 sshd:. . [ 确定 ].
启动 sshd . [ 确定 . ]投资
[root@localhost .ssh]# ssh -l admin lo.calhos.t 外汇
Permission denied (publick.ey)..
我在/etc/ssh/sshd_conf..ig所做的修改: 建材
P.asswordAuthentication no.
Cha.llengeRe.sponseAuthentication no 婚庆
请高手们指点, 小弟正在.做毕业设.计, 希望得到好心人士的帮忙, 谢谢!电影