id_rsa.pub文件在哪里创建?

时间:2011-08-17 13:39:54

标签: ssh ssh-keys

我运行了以下SSH命令来创建我的rsa密钥,但我不知道文件的创建位置

drlloyd@DIS-7L79KF1 ~/.ssh
$ ssh-keygen -t rsa -C "myemail@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/f/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /f/.ssh/id_rsa.
Your public key has been saved in /f/.ssh/id_rsa.pub.
I removed the rsa fingerprint

id_rsa.pub文件在哪里创建?

3 个答案:

答案 0 :(得分:23)

呃,~/.ssh,或者特别是你的/f/.ssh

如果您使用的是Windows,请查看F:\.ssh

答案 1 :(得分:9)

对我来说,这个文件存在于c:/Users/Lee/.ssh

答案 2 :(得分:5)

id_rsa.pub位于/f/.ssh/id_rsa.pub

编辑:没有意识到你在Windows上。键入以下内容以获取id_rsa.pub

的内容
cd /f/.ssh/
cat id_rsa.pub