我嘗試做如下描述 - Adding or changing a passphrase -如何找到我的密碼?
ssh-keygen -p
# Start the SSH key creation process
# Enter file in which the key is (/Users/you/.ssh/id_rsa): [Hit enter]
# Key has comment '/Users/you/.ssh/id_rsa'
# Enter new passphrase (empty for no passphrase): [Type new passphrase]
# Enter same passphrase again: [One more time for luck]
# Your identification has been saved with the new passphrase.
但我不知道我的密碼。
我下 - C:\Users\XXXX\.ssh
兩個相關的文件 -
id_rsa.pub -
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1VSOsednPUPolm08iQ1lIkaJrThIZ2l4cMUSWbyPaVYRVECrRhbLogHlPRpD4//wU3oskdmckdkdjkdlacQ3hQljEv1yLCA6tK5suOz3qn8Q5JGeD9FuL066yrwD+cOEeRGgPf+1fmx+v4rD8lHwT2BgtIThHtNlQGMhW/K64nZl98lyn3HMrrlL94is70VstVu6Yx9r4mFOi/GYdMZFDwUEWiI2t8aWtLRakKws5tcxgJ57zuLsXMk7d8nayYYLeH1SaP29px98Mo4VOF21maznwqhAgtbDgEEbic3D1Rbdnxj6h/DgolaMOTQ== [email protected]
github_rsa.pub -
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzsrncWjrpJMl18Tmodm7Jv1MdfY7v4NjDNjt1CfwJ/6z7agtKcn44016EYdPHNl7nM9czxczxczxczczfdfdcxcxcxBqjsKMUQb6p2hV5WGJQJysUSEA3y7s/mDW5QoHBbB0sx4a6a0C5hQi3FIn5seAfiWxTSXQHBWReLgR+EtnvdqVRIhqYgmEQ16CCr9XcVLbdByZlTCWQpD7Sldp6ocgwXlKIY/WQyhaIL8EMfhoMZofTaGXkLfVwww7hIuFDiaR2IOq9PxbZfn3wH+BSbvmpsl+RPVM1zcwEPdse+YceubJDMrSBP0GdQ== [email protected]
我能恢復密碼的上面或者你有任何其他建議?
UPDATE:
繼@IdanArye答案做後續 -
刪除了所有以前的密碼 -
添加新SSH key
根據在id_rsa.pub
文件中的內容 -
回到我的問題,我現在要做的,露出我的passphrase
?
不過我得到 -
C:\Users\XXX\Documents\GitHub> ssh-keygen -p
Enter file in which the key is (/c/Users/XXXX/.ssh/id_rsa):
Enter old passphrase:
Bad passphrase.
當我進入新生成的SSH Key
。
更新2:
再次,以下@IdanArye更新 - 我做了後續的Git Shell
-
C:\Users\XXXX\Documents\GitHub> ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/XXXX/.ssh/id_rsa):
/c/Users/XXXXXX/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/XXXX/.ssh/id_rsa.
Your public key has been saved in /c/Users/Uriel/.ssh/id_rsa.pub.
The key fingerprint is:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX [email protected]
C:\Users\XXXXXX\Documents\GitHub>
1)請問我這裏輸入的是什麼考慮爲我的新passphrase
?
2)從這裏,如何生成一組新的公鑰,私鑰和passpharse
?
我只希望你沒有真正發佈你的pubkeys在這裏。 – florianb
不...我改變了..別擔心。 – URL87
@florianb在線共享公鑰有什麼問題?是不是可以共享公鑰的非對稱加密技術的全部重點?只要他不發佈私鑰,就不會有任何問題。 –