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

Closed
MarkPaxton opened this issue Dec 21, 2022 · 2 comments · Fixed by #10545
Closed

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

MarkPaxton opened this issue Dec 21, 2022 · 2 comments · Fixed by #10545

Comments

@MarkPaxton
Copy link

Environment

  • Git Extensions 4.0.1.15887
  • Build f2567de
  • Git 2.38.1.windows.1
  • Microsoft Windows NT 10.0.22623.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.Control.OnClick(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)

Ssh key is loaded with pagent. Trying to push to a branch that worked in previous version

Works is ssh key is manually specified in remotes config.

Steps to reproduce

Create a remote using ssh. load public key via pagent. Try to push to remote.

Did this work in previous version of GitExtensions?

Worked in previous 4.0 release

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

@gerhardol
Copy link
Member

Duplicate of #10530
Please try the solution in #10545

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