Good suggestion, Vince, except the “web guy” is my son!  Anyway, I had a word with him and it’s sorted.  Kids these days . . .

Sorry for the chit chat, Tom.

Paul VE1DX 

On Nov 8, 2024, at 2:43 PM, vince <[email protected]> wrote:

The 's' in sftp kinda means ssh.......so personally I'd look for different "web guys" ala a different service provider....

On Friday, November 8, 2024 at 10:17:59 AM UTC-8 WindnFog wrote:
Tom, my web guys will not allow ssh (and thus no rsync.)  Is the following an alternative solution to keep sftp going?

"Alternative: pysftp Drop-in Replacement with paramiko-sftp

If you need a near drop-in replacement for pysftp, the paramiko-sftp package provides a simple wrapper around paramiko and closely mimics pysftp's API. "

Paul VE1DX

On Sunday, November 3, 2024 at 8:53:15 AM UTC-4 Tom Keffer wrote:
From what I can tell, pysftp is no longer available in the Debian repositories. My first recommendation would be to use rsync if your ISP offers it because it is so much faster.

However, if your ISP does not offer rsync, and you must use pysftp, it is available on pypi.org, although the version is quite old (5 July 2016). I gave it a quick try using a modern version of Python (v3.12) and it seems to work. 

You can use pip to install it system wide. In general, this is not a good idea because it can break existing packages and, for this reason, modern versions of pip won't let you do this without the scary sounding override "--break-system-packages"

# If it hasn't been installed already, install pip:
sudo apt install python3-pip

# Install pysftp using pip. Override
sudo python3 -m pip install --break-system-packages pysftp





On Sun, Nov 3, 2024 at 2:58 AM Alan Salmon <[email protected]> wrote:
I've received advice from my web provider that they are phasing out ftp uploads and requiring all users to move to sftp in the near future.

Going through the documentation, it says I need pysftp and suggests using "pip install pysftp" if you used the Pip install method, or else use "apt install" method.

Using the apt method, it cannot locate the package. I've tried both "pysftp" and "python3-sftp" as advised by the apt error message.

Can someone advise what I need to feed apt on my Raspberry Pi 4 running Debian 12 Bookworm?

Thanks.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/031628b5-fd97-4854-836c-ee392fb32e2en%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/VNYQX36G_fE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/4c9b3e7f-24bb-4e1b-a788-1acea4b1af51n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/9705EAF2-4109-4FDF-878A-B200A5FD468E%40gmail.com.

Reply via email to