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

SSH.Net 2024.0.0 works for UWP but does not work for Android and iOS #1406

Closed
Karteeka18 opened this issue May 17, 2024 Discussed in #1405 · 1 comment · Fixed by #1461
Closed

SSH.Net 2024.0.0 works for UWP but does not work for Android and iOS #1406

Karteeka18 opened this issue May 17, 2024 Discussed in #1405 · 1 comment · Fixed by #1461

Comments

@Karteeka18
Copy link

Discussed in #1405

Originally posted by Karteeka18 May 17, 2024
We have integrated SSH.Net 2024.0.0 from Nuget for Xamarin UWP, Xamarin. IOS and Mono Android. UWP works fine. BUT iOS and Android are throwing exceptions. Any ideas or suggestions would be helpful.
Visual Studio 2022 C#

          using (SftpClient sftp = new SftpClient(host, port, user, pass))
            {
                sftp.Connect();

                if (!sftp.Exists(path))
                    ok = false;
                sftp.Disconnect();
            }

Throws an Exception on sftp.Connect().

iOS Exception
{System.NotImplementedException: The method or operation is not implemented. at System.Security.Cryptography.ECDsa.Create (System.Security.Cryptography.ECParameters parameters) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamari…} 

@Rob-Hague
Copy link
Collaborator

It's not clear to me which runtime version your app is using and which target platform for the library.

You would get a definitive answer by including that in an issue in the https://github.com/dotnet/runtime repository, although I'm afraid the answer might simply be that ECDsa is not supported on your chosen version/platform.

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.

2 participants