Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Using SFTP

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Using SFTP

Post by richard_newberry »

When i tried to use SFTP on cumulus i was getting the following errors.

2022-05-18 15:59:53.675 Realtime[0]: Start cycle
2022-05-18 15:59:53.686 Realtime[0]: Creating realtime.txt
2022-05-18 15:59:53.693 Realtime[0]: Processing realtime file - realtimegauges.txt
2022-05-18 15:59:54.214 RealtimeReconnect: Realtime ftp attempting disconnect
2022-05-18 15:59:54.215 RealtimeReconnect: Realtime ftp disconnected
2022-05-18 15:59:54.215 RealtimeReconnect: Realtime ftp attempting to reconnect
2022-05-18 15:59:54.215 RealtimeReconnect: Error reconnecting ftp server - Object reference not set to an instance of an object.
2022-05-18 15:59:54.215 RealtimeReconnect: Realtime ftp attempting to reinitialise the connection
2022-05-18 15:59:54.220 Realtime[0]: End cycle
2022-05-18 15:59:54.223 RealtimeSSHLogin: Attempting realtime SFTP connect to host 212.159.122.28 on port 22
2022-05-18 15:59:54.259 RealtimeSSHLogin: Connecting using password authentication
2022-05-18 15:59:54.522 RealtimeSSHLogin: Error connecting SFTP - An established connection was aborted by the server.

Any ideas please?
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Using SFTP

Post by freddie »

Does your host offer SFTP? If yes, does your host offer SFTP with password authentication (as opposed to other forms of Auth such as certificates)?
Freddie
Image
User avatar
BeaumarisWX
Posts: 357
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: Using SFTP

Post by BeaumarisWX »

Hi,
Just another point.
If your answers are yes to freddies questions above, check what your host states as the port for SFTP, by default it is 22 in CumulusMX.
However it maybe 21 or other.
Kind Regards,
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Using SFTP

Post by richard_newberry »

Yes it supports SFTP and its port 22 but still doesn't work??

i use winscp from my windows machine from outside my network and it works just not on cumulus.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Using SFTP

Post by richard_newberry »

password authentication should work over SFTP but it doesn't in cumulus?

Anyone who tried this?
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Using SFTP

Post by freddie »

richard_newberry wrote: Thu 19 May 2022 10:40 am password authentication should work over SFTP but it doesn't in cumulus?
Looks like it did, but you were immediately booted out:

Code: Select all

2022-05-18 15:59:54.223 RealtimeSSHLogin: Attempting realtime SFTP connect to host 212.159.122.28 on port 22
2022-05-18 15:59:54.259 RealtimeSSHLogin: Connecting using password authentication
2022-05-18 15:59:54.522 RealtimeSSHLogin: Error connecting SFTP - An established connection was aborted by the server.
Perhaps your host has some sort of connection limit?
Freddie
Image
broadstairs
Posts: 745
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Windows 7 and Linux
Location: Broadstairs, Kent, UK
Contact:

Re: Using SFTP

Post by broadstairs »

When something like this happens I'd try using an FTP client to test and get it working first, that way you know the correct options.

Stuart
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Using SFTP

Post by richard_newberry »

When using ftp via ssh outside the network and when i input the username and password i can access the cumulus files and when cumulus trys to upload it timed out errors.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Using SFTP

Post by freddie »

richard_newberry wrote: Thu 19 May 2022 1:37 pm When using ftp via ssh outside the network and when i input the username and password i can access the cumulus files and when cumulus trys to upload it timed out errors.
That's like comparing oranges and bananas, never mind apples. If you SFTP from outside your network to your Pi, you are initiating the connection. When Cumulus SFTPs to your remote site, Cumulus is initiating the connection. Your error suggests that connections to the remote site using username/password are not permitted, or that there is a limit to the number of connections allowed - both concurrent and in a period of time.
Freddie
Image
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Using SFTP

Post by richard_newberry »

I will have a look at the concurrent connection in /etc/ssh/sshd_config
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Using SFTP

Post by richard_newberry »

moving to active ftp works.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Using SFTP

Post by freddie »

richard_newberry wrote: Sat 21 May 2022 10:11 pm I will have a look at the concurrent connection in /etc/ssh/sshd_config
Wait .... are you actually hosting the server? The file /etc/ssh/sshd_config is the SSH server config file, not the client.
Freddie
Image
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Using SFTP

Post by freddie »

richard_newberry wrote: Sat 21 May 2022 11:39 pm moving to active ftp works.
I thought you said in another post that passive works? I may be mistaken but I thought that was what I read.
Freddie
Image
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Using SFTP

Post by richard_newberry »

Passive did work but stopped when i moved firewalls to pfsense so active works now. More secure firewall.

Yes i host the server.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Using SFTP

Post by mcrossley »

So in summary, I think...

FTPS now works in Active mode? (used to work passive but not after a firewall change)
SFTP still fails.

I've had a look at the SFTP, and I *think* the issue is to do with the key exchange protocol...

The old version of SSH.Net I am having to use does not implement the newer Ecliptic Curve Diffie-Hellman protocols, only the older plain Diffie-Hellman, and I don't think your server will accept the old protocols.

The encryption and and mac algorithms have plenty of methods in common. But the server just sends a TCP reset after acknowledging the client key exchange initialisation message.
Post Reply