Page 1 of 2
Renci.SshNet.dll
Posted: Mon 14 Dec 2020 7:56 pm
by Frank G
Hello,
when I use the current version of Renci.SshNet.dll, a connection to the host/webserver is not established. The MXdiags says:
Code: Select all
2020-12-14 18:48:09.952 SFTP[0]: Attempting realtime SFTP connect to host ssh.xxxx.de on port 22
2020-12-14 18:48:10.769 SFTP[0]: Error connecting sftp - The method or operation is not implemented.
If I use the version from build 3086 from Renci.SshNet.dll, a connection to the host/webserve is established. The MXdiags says:
Code: Select all
2020-12-14 18:51:09.959 SFTP[0]: Attempting realtime SFTP connect to host ssh.xxxx.de on port 22
2020-12-14 18:51:20.766 SFTP[0]: Realtime SFTP connected
Sftp settings are OK, sftp works.
I did a complete new CumulusMX setup (3.9.2 (build 3097).
Btw, working with "Pre-shared Private Key file for SFTP" failed. Settings for the key are OK, works on the same RPI and host/webserver with other tools.
Does anybody has a hint?
Thanks, Frank
Re: Renci.SshNet.dll
Posted: Mon 14 Dec 2020 8:16 pm
by mcrossley
Can you confirm the versions of the Renci.SshNet.dll that does not work and the one that does please.
Re: Renci.SshNet.dll
Posted: Mon 14 Dec 2020 9:11 pm
by Frank G
Last version that work: 3.6.10 - b3086
First version that doesn't work came with 3.6.11 - b3087
Re: Renci.SshNet.dll
Posted: Mon 14 Dec 2020 9:43 pm
by mcrossley
Try upgrading to b3097, there have been a few SFTP improvements since the version you have - including working with more key file types.
Re: Renci.SshNet.dll
Posted: Mon 14 Dec 2020 9:46 pm
by mcrossley
Ah, it was a typo "3087" you meant 3097?
The version of Renchi.SshNet.dll that comes with 3097 is 2020.0.0.0 - not sure where you got that 3.6.11 version from?
Re: Renci.SshNet.dll
Posted: Tue 15 Dec 2020 12:37 am
by Frank G
Ah, it was a typo "3087" you meant 3097?
No, it wasn't a typo. With the "3087"-version my problems started. With any Cumulus-update (after 3086) I made, I tried the included Renci.SshNet.dll-version. But I had to go back to the 3086-version of Renci.SshNet.dll too keept my system running. Yesterday I updatet to version 3097 and again, no luck with the Renci.SshNet.dll of the current version and ... back to the 3086-version of Renci.SshNet.dll.
Re: Renci.SshNet.dll
Posted: Tue 15 Dec 2020 2:45 pm
by mcrossley
I double checked using the latest version and I can connect to my SFTP server using both password and PSK authentication.
I think you will need to check the SFTP server logs to see why the connection is being rejected with the new version, this may give us a clue about how to fix it.
The new version supports additional key exchange methods - Diffie-Hellman Group16 SHA512, and Diffie-Hellman Group14 SHA256, there may be an issue in those?
Re: Renci.SshNet.dll
Posted: Tue 15 Dec 2020 8:00 pm
by Frank G
Another curious thing (with 3086-version of Renci.SshNet.dll): Some files were send to the sever, some don't (honestly, I only really noticed it on 2020-12-06 when CumulusMX crashed). MXdiags says e.g.:
Code: Select all
2020-12-15 18:25:25.594 SFTP[Int]: Starting Upload of web/monthlyrecord.htm to Wetter/Cumulus/monthlyrecord.htm
2020-12-15 18:25:25.594 SFTP[Int]: Error uploading web/monthlyrecord.htm to Wetter/Cumulus/monthlyrecord.htm : Cannot access a disposed object.
Object name: 'Renci.SshNet.SftpClient'.
Maybe this helps a little bit.
What I did so far:
Installed a complete new OS.
Installed the current version of CMX.
Change the RPI (RPI 2 exchanged by RPI 3).
And, due to the problems with sftp, went back to ftp (today).
With ftp all files are sent to the server.
The new version supports additional key exchange methods - Diffie-Hellman Group16 SHA512, and Diffie-Hellman Group14 SHA256, there may be an issue in those?
I will have a look in it. Thanks.
Re: Renci.SshNet.dll
Posted: Tue 22 Dec 2020 1:19 pm
by mcrossley
Did you ever get to the bottom of why this was not working?
Re: Renci.SshNet.dll
Posted: Sat 16 Jan 2021 12:25 am
by hemmits
Not sure if this is related, but when I updated Cumulus to build 3100, the program crashed and I received an error referencing this file. I always l keep a backup of the previous build and noticed that this file was "downgraded" in release 3100 compared to 3099. Renci.SshNet.dll in version 3099 was 777kb in size with a "date modified" stamp of 6/7/2020. In build 3100, it is 413 kb in size with a "date modified" stamp of 10/16/2017. I replaced Renci.SshNet.dll with the "older" version and Cumulus now works fine. Was this intended?
Re: Renci.SshNet.dll
Posted: Sat 16 Jan 2021 7:21 am
by freddie
See the
announcement post for this release. It details this change.
Re: Renci.SshNet.dll
Posted: Sat 16 Jan 2021 5:12 pm
by gerardwood
I'll second the post from hemmits - same happened to me. The announcement post for release 3100 doesn't mention any problems users may have if they 'upgrade' to the older version in this release. I also replaced Renci.SshNet.dll with the version from build 3099, and this resolved the problem.
Re: Renci.SshNet.dll
Posted: Sat 16 Jan 2021 5:24 pm
by mcrossley
Question, did you overwrite all your files with the zip contents?
Re: Renci.SshNet.dll
Posted: Sat 16 Jan 2021 5:30 pm
by HansR
I don't have the problem and apparently neither apparently a lot of others.
So my guess is that you guys did some kind of partial, file based update. The cause most likely is not in the distribution.
If you extract (or copy, whatever technique you use to update) all files from the zip to the destination it might just work.
[Edit] Ah... Mark jumped in already.
Re: Renci.SshNet.dll
Posted: Sat 16 Jan 2021 6:39 pm
by mcrossley
Most likely not copying the CumulusMX.exe.config file.