Rsync Suddenly Stopped Working

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

Any ideas?

This is an rsync/os issue, not a Hugo issue. Stack Overflow might be a better forum for this.

But I would start troubleshooting this…

…by testing an SSH session.

Thanks.

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.

1 Like