Cannot compile torizon example

Hi,

i could follow the Torizon tutorial up to step
“Build and Run your First C Application” - Step 15: Debug an Deploy.

It fails with an error in the connection error. It keeps on asking me
to verify the hostkey for 127.0.0.1 …
No matter, what I click, it always fails

It also produces an error log, see attached.

I also have the moses.exe log open - no errors there

Any help is greatly appreciated.

Kind regards
Thomas

=====================
11.06.2021 15:01:53
Recoverable
System.AggregateException: Mindestens ein Fehler ist aufgetreten. ---> liblinux.RemoteConnectivityException: Fehler beim Validieren des SSH-Schlüsselaustauschs. ---> Renci.SshNet.Common.SshKeyExchangeFailedConnectionException: Eine Ausnahme vom Typ "Renci.SshNet.Common.SshKeyExchangeFailedConnectionException" wurde ausgelöst.
   bei Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
   bei Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle)
   bei Renci.SshNet.Session.Connect()
   bei Renci.SshNet.BaseClient.CreateAndConnectSession()
   bei Renci.SshNet.BaseClient.Connect()
   bei liblinux.HostKeyVerifier.Connect(BaseClient client)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei liblinux.HostKeyVerifier.Connect(BaseClient client)
   bei liblinux.RemoteSystemBase.ConnectCore()
   bei liblinux.RemoteSystemBase.Connect(PasswordConnectionInfo passwordConnectionInfo)
   bei liblinux.RemoteSystemBase.Connect()
   bei liblinux.RemoteSystemBase.Connect(ConnectionInfo connectionInfo)
   bei Microsoft.VisualStudio.Linux.Package.LinuxProjectTracking.<>c__DisplayClass42_0.<LogInstalledToolsTelemetry>b__0()
   bei Microsoft.VisualStudio.ProjectSystem.ProjectMultiThreadedService.<>c__DisplayClass31_0.<<Fork>b__0>d.MoveNext()
   --- Ende der internen Ausnahmestapelüberwachung ---
---> (Interne Ausnahme #0) liblinux.RemoteConnectivityException: Fehler beim Validieren des SSH-Schlüsselaustauschs. ---> Renci.SshNet.Common.SshKeyExchangeFailedConnectionException: Eine Ausnahme vom Typ "Renci.SshNet.Common.SshKeyExchangeFailedConnectionException" wurde ausgelöst.
   bei Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
   bei Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle)
   bei Renci.SshNet.Session.Connect()
   bei Renci.SshNet.BaseClient.CreateAndConnectSession()
   bei Renci.SshNet.BaseClient.Connect()
   bei liblinux.HostKeyVerifier.Connect(BaseClient client)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei liblinux.HostKeyVerifier.Connect(BaseClient client)
   bei liblinux.RemoteSystemBase.ConnectCore()
   bei liblinux.RemoteSystemBase.Connect(PasswordConnectionInfo passwordConnectionInfo)
   bei liblinux.RemoteSystemBase.Connect()
   bei liblinux.RemoteSystemBase.Connect(ConnectionInfo connectionInfo)
   bei Microsoft.VisualStudio.Linux.Package.LinuxProjectTracking.<>c__DisplayClass42_0.<LogInstalledToolsTelemetry>b__0()
   bei Microsoft.VisualStudio.ProjectSystem.ProjectMultiThreadedService.<>c__DisplayClass31_0.<<Fork>b__0>d.MoveNext()<---

===================

Dear @t_achmann,

Thanks for using the community.

It seems to be an issue with the fingerprint mentioned in the error. Toradex does not save them, but in this case it is managed by Visual Studio itself. The key for the host does not match the one used by the SDK. To fix this you can try to clean the “known_hosts” file.

What version of the extension are you using? Is it the “stable” or “developer” version?

Let me know about your progress.

Best Regards
Kevin

Hi Kevin,

so far no progress …

Just tried to connect via ssh from Powershell to Container - success.

But VS2019 is still a problem.

I’m using the stable version

Thomas

[upload|ahBYQho3dH6zJKUwQKPWp78KRDw=]

[upload|sNVrG1P2yXo6Z4EPztCfIJN66ag=]

Hi @t_achmann ,

okay thank you for the information and the screenshots.

I will try to reproduce the issue on my end. In the mean time, would it be possible for you to test the “early access” version of the VS extension? There’s a possibility that this fixes the issue.

Best Regards
Kevin

Thanks, Kevin for the quick reply - I will give it a try.

I also will start to use Linux as host.

Best regards
Thomas