|
:help 按照书上的步骤,我用ssh-keygen -t rsa 生成了公钥和私钥(id-rsa.pub和id-rsa),并将id-rsa.pub拷到了远端的电脑上。但我在本机使用ssh IP地址,却仍要我输入密码(我没有用口令短语,所以没有用ssh-agent命令)。请问这到底是怎么回事???:help
SSH的版本是相同的OpenSSH_4.2p1, OpenSSL 0.9.7a Feb 19 2003,
OS都是AS3
下面是我键入的步骤:
[yb@dell bin]$ ./ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/yb/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/yb/.ssh/id_rsa.
Your public key has been saved in /home/yb/.ssh/id_rsa.pub.
The key fingerprint is:
14:4d:8f:f1:27:bf:99:8f:9d:a2:e3:68:ed:fa:6b:83 yb@dell
[yb@dell bin]$ scp ~/.ssh/id_rsa.pub 192.168.2.217:/home/yb/.ssh/
The authenticity of host '192.168.2.217 (192.168.2.217)' can't be established.
RSA key fingerprint is b4:c2:9d:a8:f1:2b:2c:23:e3:d1:1d:7d:7d:b1:23:47.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.2.217' (RSA) to the list of known hosts.
yb@192.168.2.217's password:
id_rsa.pub 100% 389 0.4KB/s 00:00
[yb@dell bin]$ ./ssh 192.168.2.217
yb@192.168.2.217's password: |
|