Chinaunix

标题: rsa认证生成密钥无效 [打印本页]

作者: lottery009    时间: 2009-04-17 17:14
标题: rsa认证生成密钥无效
用如下命令,结果 却没有 /home/oracle/.ssh/id_rsa这个文件, 但是用dsa可以
[oracle@~/kamus/rsa-dsa]$ ssh-kengen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa): liuqf_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in liuqf_rsa.
Your public key has been saved in liuqf_rsa.pub.
The key fingerprint is:
da:9b:cc:68:8c:ff:75:cb:20:f1:11:18:2d:3d:22:ef oracle@ora10g
[oracle@~/kamus/rsa-dsa]$ ls -l /home/oracle/.ssh/id_rsa
ls: /home/oracle/.ssh/id_rsa: No such file or directory
作者: livelin    时间: 2009-04-17 17:26
Enter file in which to save the key (/home/oracle/.ssh/id_rsa): liuqf_rsa

你都已经把它改成这个名了 id_rsa当然没了
作者: lottery009    时间: 2009-04-17 17:56
不是很明白,能否详细点?
但是如果我用 ssh-kengen -t dsa
是会生成 /home/oracle/.ssh/id_dsa 文件的
作者: rhlei    时间: 2009-04-18 08:34
标题: 回复 #3 lottery009 的帖子
Enter file in which to save the key (/home/oracle/.ssh/id_rsa): liuqf_rsa


你修改了默认名
作者: hakajawa    时间: 2009-04-18 14:00
你直接enter就可以了
作者: vermouth    时间: 2009-04-18 17:37
pwd;ls -R




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2