Skip to content
  • Sponsor
  • Notifications You must be signed in to change notification settings
  • Fork 5
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

Missing Method Exception with SSH.NET version 2023.0.0 or newer. #94

Open
bakerhillpins opened this issue Mar 10, 2025 · 0 comments · May be fixed by #95
Open

Missing Method Exception with SSH.NET version 2023.0.0 or newer. #94

bakerhillpins opened this issue Mar 10, 2025 · 0 comments · May be fixed by #95

Comments

@bakerhillpins
Copy link

bakerhillpins commented Mar 10, 2025

Neon.SSH will cause a missing method exception when used with applications that load SSH.NET versions 2023.0.0 or newer due to PR 794. The current NuGet package suggests that it will work with any version 2020.0.2 or newer.

I found this issue using Neon.SSH in a Visual Studio Extension in which it appears MAUI workloads load the latest version of SSH.NET 2024.2.0

This will occur when attempting to use Neon.SSH.SshCredentials.FromPrivateKey as the constructor on line 77 has changed.

In SSH.NET the constructor for Renci.SshNet.PrivateKeyAuthenticationMethod stopped taking a PrivateKeyFile array in favor of the new IPrivateKeySource interface.

bakerhillpins added a commit to bakerhillpins/neonSDK that referenced this issue Mar 11, 2025
Update SSH.NET NuGet dependency to avoid missing method exception.
Convert SshCommand.ExitStatus to 0 on a null result. This is equivalent to the result of the previous SSH.NET implementation.
@bakerhillpins bakerhillpins linked a pull request Mar 11, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant