我用git bash生成了一个ssh密钥。生成后,控制台显示:
Your identification has been saved in ***
Your public key has been saved in ***.pub
之后,当我使用$ls -al ~/.ssh
时,它显示为//No such file or directory
。
我也尝试了$ ls ~/.ssh/*.sshpub
和$ ls -al ~/.ssh #
,得到了相同的结果
我怎样才能看到我的SSH密钥?
尝试重新生成:
ssh-keygen -t rsa -P ""
默认生成~/.ssh/id_rsa
/~/.ssh/id_rsa.pub