-
-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pageant error at startup: Couldn't load this key (unable to open file) #249
Comments
That's the error pageant gives when it tries to open a non-existent file. By default, posh-git will try to load pageant with any .ppk files in $Env:Home.ssh, but having no keys there just means it won't be given any as arguments. Are you calling |
I have only this in my try { $null = gcm pshazz -ea stop; pshazz init 'default' } catch { }
# Load posh-git example profile
. 'C:\Users\user\Documents\WindowsPowerShell\Modules\posh-git\profile.example.ps1'
Could this be because the SSH keys in .ssh are password protected? |
That happened when reinstall my system. After I deployed the tortoisGit, it showed me the tips when I used 'Git pull' or other code. Then I searched this issue, but it did not resole my problem. Fortunately, I recognised that whether it was the problem of the old configuration? So, I opened the 'config' file of my project, deleted the 'puttykeyfile' line. ...! Resolved! Hoping to help you! ps: project dictionary -> .git -> config -> puttykeyfile |
I'm also having this issue, but the keys I want to load are definitely there. I have one key in |
Handling multiple pageant keys and keys with spaces in didn't work properly, now fixed and functioning in a more powershell-y way.
Delete all keys from the putty agent and restart it ;) |
When Powershell is started Pageant pops up an error saying "Couldn't load this key (unable to open file)":
What key is it talking about? Do I need to set it somewhere?
The text was updated successfully, but these errors were encountered: