6.测试连接
$ ssh -2 -p 222 IP# 这里的-2表示用版本2,这里可以不用指定,以为已经是版本2了,只是为了说明的清楚点

-p 222表示连接端口是:222
The authenticity of host 'xxx.xxx.xxx.xx (xxx.xxx.xxx.xx)' can't be established.
RSA key fingerprint is 5e:39:69:5e:0b:56:23:63:b0:ce:5d:7c:37:e5:f5:28.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'xxx.xxx.xxx.xx' (RSA) to the list of known hosts.
Enter passphrase for key '/home/ourlinux/.ssh/id_rsa':
Last login: Mon Jan 10 03:35:06 2005 from xxx.xxx.xxx.xx
7.
常见问题(1)如果出现Permission denied (publickey,keyboard-interactive).
A.请先检查是否存在~/.ssh/authorized_keys并且~/.ssh/authorized_keys的权限是否是644,还有~./ssh是否是755的权限
B.请检查该用户是否没有设置passwd,如果没有,请用root用户先设置密码!这里是:
#passwd ourlinux,然后输入2次密码!
(2)配置客户端请安照步骤来配置!否则可能也会出现(1)的问题!
(3)我要在WIN上的SSH客户端软件来使用怎么办?
首先要把id_rsa id_rsa.pub下载到WIN的机器上来!
下面用SecureCRT来做客户端测试
如图1(见下面的附件)
8.注意点
要保存好id_rsa(密钥)和id_rsa.pub(公钥),尤其是密钥!
如果在配置过程中有问题,请回帖!或者在MSN联系:bixuan@linuxfans.org,同时也希望请大虾们赐教,先谢过

本文地址:
http://www1.ourlinux.net/bbs/showforum.php...p?showtopic=190,转载请注名来自:碧轩居 -
http://www.ourlinux.net 附图