我运行了以下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文件在哪里创建?
答案 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