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 #10652

Closed
bensewell opened this issue Jan 16, 2023 · 2 comments
Closed

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

bensewell opened this issue Jan 16, 2023 · 2 comments

Comments

@bensewell
Copy link

Environment

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

Issue description

''

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.PushChanges(IWin32Window owner)
   at GitUI.CommandsDialogs.FormPush.PushClick(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)

Clone a repository using an SSH key in Pageant, without supplying to Git Extensions explicitly, then make a change and try to push

Steps to reproduce

  1. Load your SSH key into Pageant.
  2. Clone repository without supplying it to Git Extensions explicitly.
  3. Try pushing updates.

Did this work in previous version of GitExtensions?

Yes it did - Definitely in the last major version, quite possibly since then too.

Diagnostics

No response

@RussKie
Copy link
Member

RussKie commented Jan 16, 2023 via email

@doctorfox
Copy link

doctorfox commented Jan 17, 2023

I experienced this same issue, I had to go into
Tools ->Settings -> SSH
Change from OpenSSH back to Putty
And confirm that all the paths to my external Putty installation are correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants