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

Closed
holstebroe opened this issue Dec 19, 2022 · 3 comments · Fixed by #10545
Closed

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

holstebroe opened this issue Dec 19, 2022 · 3 comments · Fixed by #10545

Comments

@holstebroe
Copy link

Environment

  • Git Extensions 4.0.1.15887
  • Build f2567de
  • Git 2.39.0.windows.1
  • Microsoft Windows NT 10.0.19044.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)

Tried to push to an SMB remote directory. No SSH key needed or expected.

Steps to reproduce

  1. Create a remote repository from an SMB url, example "\mymachine.myhost.com\git\MyRepo"
  2. Push to that repo.

Did this work in previous version of GitExtensions?

Yes, pushing to remote SMB repositories has worked in all versions up til 4.x

Diagnostics

No response

@duplicates-detector-bot
Copy link

Potential duplicates:

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

@holstebroe
Copy link
Author

Workaround: I selected some random private key file in the remote repository window. After that I could push to the key-less SMB remote.

@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