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 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Moderator: mcrossley
-
- 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
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?
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
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
-
- Posts: 2477
- 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
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)?
- BeaumarisWX
- Posts: 375
- 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
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,
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 :
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 :
-
- 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
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.
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
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
-
- 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
password authentication should work over SFTP but it doesn't in cumulus?
Anyone who tried this?
Anyone who tried this?
Desford Weather (at parents)
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
-
- Posts: 2477
- 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
Looks like it did, but you were immediately booted out:richard_newberry wrote: ↑Thu 19 May 2022 10:40 am password authentication should work over SFTP but it doesn't in cumulus?
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.
-
- Posts: 769
- 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
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
Stuart
-
- 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
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
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
-
- Posts: 2477
- 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
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.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.
-
- 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
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
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
-
- 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
moving to active ftp works.
Desford Weather (at parents)
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
-
- Posts: 2477
- 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
Wait .... are you actually hosting the server? The file /etc/ssh/sshd_config is the SSH server config file, not the client.richard_newberry wrote: ↑Sat 21 May 2022 10:11 pm I will have a look at the concurrent connection in /etc/ssh/sshd_config
-
- Posts: 2477
- 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
I thought you said in another post that passive works? I may be mistaken but I thought that was what I read.
-
- 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
Passive did work but stopped when i moved firewalls to pfsense so active works now. More secure firewall.
Yes i host the server.
Yes i host the server.
Desford Weather (at parents)
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
https://desford-weather.co.uk
Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
- mcrossley
- Posts: 12766
- 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
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.
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.