Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssh id_rsa.pub文件是在哪里创建的?_Ssh_Ssh Keys - Fatal编程技术网

Ssh id_rsa.pub文件是在哪里创建的?

Ssh id_rsa.pub文件是在哪里创建的?,ssh,ssh-keys,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): Ente

我运行了以下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文件创建于何处?

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

cd /f/.ssh/
cat id_rsa.pub
编辑:未意识到您在Windows上。键入以下内容以获取id_rsa.pub的内容

cd /f/.ssh/
cat id_rsa.pub

呃,
~/.ssh
,或者特别是在您的情况下
/f/.ssh


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

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


@Brian:不是一个巨魔,只是一个忘记指定自己在哪的用户Windows@orip我指的是勒索张贴的答案,任何有点智慧的人都会张贴。这是对他的一种恭维,而不是对OP.哦,麻烦了…@brian我不是巨魔。我不认为那是驱动器号,因为在安装过程中,我没有告诉它在哪里或其他任何地方使用驱动器F。@guanome我的评论绝对不是你的。@brian我在我的评论之后看到了你的第二条评论,不用担心。Duh,我很笨。我不认为这是驱动器号,因为在安装过程中,我没有告诉它在哪里使用驱动器F。这很奇怪。