Thank you, Vince (once again). I had used my standard login to create the
config file and had not created it as the root user. It is now working.
On Thursday, April 15, 2021 at 1:19:49 PM UTC+10 vince wrote:
> You should not alter your system-wide /etc/ssh/ssh_config at all and you
> should
You should not alter your system-wide /etc/ssh/ssh_config at all and you
should never get prompted for a password if you have it set up correctly.
That stanza needs to be in root's ssh config file, which likely is
/root/.ssh/config
on a pi. Your weewx.conf file needs to use the same 'server
This is my ~/.ssh/config file;
Host 107.xxx.xxx.xxx
IdentityFile ~/.ssh/id_rsa
User o1
When my /etc/ssh/ssh_config file has;
PasswordAuthentication no
the Rsync fails .. Permission denied
(publickey,gssapi-keyex,gssapi-with-mic,password)..
When my /etc/ssh/ssh_config file has;
This is rsync 101.You need the account you are running weewx under
(root) to have a ~/.ssh/config file that tells it which key to use to
connect to the remote system, as well as which account to use on the remote
side.
Host my.remote.host.com
IdentityFile ~/.ssh/my_private_key
user
Are you testing as your own userID, but weewx is running as root? From the
command line you can add -v or -vv to your ssh command to get a TON of
details about the
ssh connection. Read it slowly and carefully. Also, you can try the rsync
by hand as well. No point trying to debug it within
According to the web server the public keys were accepted by the server.
They have sent a copy of their logs;
###
Apr 14 03:24:57 ams102 sshd[2890665]: Accepted publickey for offgrid1 from
49.xxx.xxx.xx port 34506 ssh2: RSA
SHA256:oMhJCSYLqpgYZ6mYwxcQvedv+hycs5kTOTLfVKhtPRzmGStXdRaHU
Apr 14