id_rsa.pub文件在哪里创建?

gua*_*ome 22 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
Run Code Online (Sandbox Code Playgroud)

id_rsa.pub文件在哪里创建?

ori*_*rip 23

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

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


Lee*_*man 9

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

背风处


Ran*_*ggs 5

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

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

cd /f/.ssh/
cat id_rsa.pub
Run Code Online (Sandbox Code Playgroud)