Hi, there. I last used rsync two weeks ago, but now it isn’t working.
The following error I’m getting is:
Permission denied (publickey).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at …Sources/rsync/rsync/io.c(453) [sender=2.6.9]
I had made no changes to the server (site ground) or anything else. This baffles me. I’ve been using the ./deploy command as recommended on the Hugo website: Deployment with Rsync | Hugo
For anyone else with the same issue: I checked my rsync syntax, which was all fine. I contacted my hosting provider to test the ssh session with a new key, and it was working. So, to resolve the issue, I generated a new set of ssh keys. I am not sure what the problem was, but it is working now after the new key generation.