In summary, the Secure FTP capability is
indicated in weewx.conf (& the caveat comment seems satisfied with
testing of Filezilla's success), however in weewx's native install it
does not work.
SSH increases the security on your web space by encrypting your web space connections. With SSH enabled, you can transfer files securely via SFTP or connect to your web space directly from a terminal.
To log in with SSH & SFTP, use this info:
ssh.<redacted>.net
<redacted>.net
22
Then their faq on the subject has this:
Open your SFTP client, and enter the following details, replacing yourdomain.com with your own domain:
Click the connect button in your client to log in. If it is the first time you login using SFTP on this computer, you need to approve the connection.
Note: I have verified that with filezilla, both sftp.mydomain.net and ssh.mydomain.net, using my ssh/sftp password, connect fine.
When I make the appropriate changes to weewx.conf, it is unable to connect. I tried a couple variations just to cross-validate disparities in their guide. No connect.
SO THEN I google "weewx 3.9.2 sftp" and come up with, among other things, MWall's https://github.com/matthewwall/weewx-sftp/blob/master/bin/user/sftp.py
to wit:
sudo pip install pysftp
pi@RPI3:/home/weewx $ sudo pip install pysftp
Downloading/unpacking pysftp
Downloading pysftp-0.2.9.tar.gz
Running setup.py (path:/tmp/pip-build-6MvFgx/pysftp/setup.py) egg_info for package pysftp
no previously-included directories found matching 'docs/_build'
Downloading/unpacking paramiko>=1.17 (from pysftp)
Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB downloaded
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in prepare_files
req_to_install.extras):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in requires
dm = self._dep_map
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2630, in _compute_dependencies
common = frozenset(reqs_for_extra(None))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2627, in reqs_for_extra
if req.marker_fn(override={'extra':extra}):
File "/usr/lib/python2.7/dist-packages/_markerlib/markers.py", line 113, in marker_fn
return eval(compiled_marker, environment)
File "<environment marker>", line 1, in <module>
NameError: name 'platform_system' is not defined
Storing debug log for failure in /root/.pip/pip.log
pi@RPI3:/home/weewx $ sudo apt-get install pysftp
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pysftp
In summary, the Secure FTP capability as indicated in weewx.conf (& the caveat comment seems satisfied with testing of Filezilla's success), in weewx's native install does not work. Not for me. And I believe I've double checked everything.
If it requires a hack to package(s) (.py) in weewx I'm comfortable doing that if the instructions are clear, concise, well written. Note, I'm not comfortable writing my own driver.
Thank you for helping.
Phil
May 25 12:05:21 RPI3 weewx[26625]: copygenerator: copied 14 files to /home/weewx/public_html
May 25 12:05:41 RPI3 weewx[26625]: ftpupload: Unable to connect or log into server : timed out
May 25 12:06:01 RPI3 weewx[26625]: ftpupload: Unable to connect or log into server : timed out
May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Unable to connect or log into server : timed out
May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Attempted 3 times to connect to server sftp.<redacted>. Giving up.
May 25 12:06:21 RPI3 weewx[26625]: ftpgenerator: ftp'd 0 files in 60.69 seconds
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2e01a5ba-3dcc-4d8a-bf29-f4dc4fbda05f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAB7-S74uOEQa_4x54AgM3d6m9K6mp6MjsR9wpn%3Dz9PRbxADdYA%40mail.gmail.com.
Password:
230 OK. Current restricted directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
>> To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2e01a5ba-3dcc-4d8a-bf29-f4dc4fbda05f%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/GdlSK3vTvYE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECPae3wT8JPVg7SptswHa-b4_5LwN2%2BYRuG%3D3KnDACrVg%40mail.gmail.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 weewx...@googlegroups.com.
(Aren't we already in weewx-user?)
one.com's robotic tech support said they only do ftp, sftp, and ssh, and don't support ftps. I don't think that offshore robot even knew what ftps was.So can somebody tell me about the thing that MWALL has on github?
--
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/GdlSK3vTvYE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c3075a6c-1c68-4098-99e7-378d96b384ee%40googlegroups.com.
pi@RPI3:~ $ sudo pip2 install pysftp
Downloading/unpacking pysftp
Downloading pysftp-0.2.9.tar.gz
Running setup.py (path:/tmp/pip-build-QfuB69/pysftp/setup.py) egg_info for package pysftp
no previously-included directories found matching 'docs/_build'
-rw-r--r-- 1 root root 84870 May 26 08:48 pip.log
sudo apt-get install python-pip
pip install --user -U setuptools
sudo pip install --upgrade pip
sudo apt-get install libffi-dev
sudo pip install pysftp #errors during pysftp install, " Building wheel for pynacl (PEP 517) ... \" still working...
sudo pip -V
pip 20.1.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)ode here...
Successfully built pysftp pynacl bcrypt
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
May 26 10:30:21 RPI3 weewx[21915]: sftpgenerator: upload not possible: No module named pysftp
Successfully built pysftp pynacl bcrypt
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
Well I knew that was too good to be true.
May 26 10:30:21 RPI3 weewx[21915]: sftpgenerator: upload not possible: No module named pysftp
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/82433072-10b1-400c-bf00-3cd94191cc5e%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/GdlSK3vTvYE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f0444643-d438-47ab-b11c-5a9bf624222en%40googlegroups.com.