Skip to content
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

[NBug] SSH key file could not be found #10569

Closed
kgrammer opened this issue Dec 22, 2022 · 4 comments · Fixed by #10545
Closed

[NBug] SSH key file could not be found #10569

kgrammer opened this issue Dec 22, 2022 · 4 comments · Fixed by #10545

Comments

@kgrammer
Copy link

Environment

  • Git Extensions 4.0.1.15887
  • Build f2567de
  • Git 2.38.1.windows.1
  • Microsoft Windows NT 10.0.22621.0
  • .NET 6.0.12
  • DPI 96dpi (no scaling)

Issue description

'C:/Users/kgrammer/.ssh/kg.ppk'

GitUI.NBugReports.UserExternalOperationException: SSH key file could not be found
 ---> System.IO.FileNotFoundException: SSH key file could not be found
   --- End of inner exception stack trace ---
   at GitUI.Infrastructure.PuttyHelpers.ThrowIfFileNotFound(String filePath, String errorMessage, String heading)
   at GitUI.Infrastructure.PuttyHelpers.StartPageantIfConfigured(Func`1 sshKeyFileLoader)
   at GitUI.CommandsDialogs.FormPush.StartPageant(String remote)
   at GitUI.CommandsDialogs.FormPush.LoadSshKeyClick(Object sender, EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

This latest upload will not let me change the location of the SSH key file. It's defaulting to a very old location from a previous laptop (I upgraded earlier this month) and now I can't change the location of the ssh key file.

Steps to reproduce

I'm not sure how you will reproduce this other then to simply try to change your SSH key file and see if you can reproduce the error.

Did this work in previous version of GitExtensions?

The release prior to this current on. I don't have the exact release number because you auto-updated my system.

Diagnostics

No response

@duplicates-detector-bot
Copy link

Potential duplicates:

  • #8089
  • #8187
  • #8966
  • #9920
  • #10363
  • #10367
  • #10368
  • #10381
  • #10412
  • #10413
  • #10528
  • #10530
  • #10551
  • #10555
  • #10562
  • #10565

@kgrammer
Copy link
Author

I was able to select "Repository", then "Remote Repositories" and I can edit the name/location of the key file to point to the correct key file. But as noted on other duplicate issues, the problem is that the original key file does not exist and the upload files page will no longer allow the key to be updated/changed when I think that was allowed in 4.0 and older versions.

"Premature Code Optimizations" at work for us!!!

@gerhardol
Copy link
Member

Duplicate of #10530
Please try the solution in #10545

Not exactly the same as the other, but the change should be the same.
Why cant you change the key in PageAnt?

@kgrammer
Copy link
Author

Changing the key in Pageant does not change the nature of this problem as the two are unrelated.

RussKie added a commit to RussKie/gitextensions that referenced this issue Jan 2, 2023
@ghost ghost added the 🚧 status: in progress Issues which have associated PRs label Jan 2, 2023
@RussKie RussKie linked a pull request Jan 2, 2023 that will close this issue
RussKie added a commit that referenced this issue Jan 2, 2023
Resolves #10530
Resolves #10555
Resolves #10562
Resolves #10565
Resolves #10569
Resolves #9588
@ghost ghost removed the 🚧 status: in progress Issues which have associated PRs label Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants