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 >> >> <https://groups.google.com/d/msgid/weewx-user/031628b5-fd97-4854-836c-ee392fb32e2en%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/5e8feed5-9fb5-4d2f-82a4-54c4c646bc99n%40googlegroups.com.
