rsync -v -v -e 'ssh -p YY' ./testfile me@XXXXX:/home
opening connection using: ssh -p YY -l me 22.214.171.124 rsync ->-server -vvve.s . /home [sender] make_file(testfile,*,0) send_file_list done send_files starting server_recv(2) starting pid=17537 rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(600)[sender=3.0.6] _exit_cleanup(code=12, file=io.c, line=600): about to call exit(12)
This works fine:
ssh -p YY me@XXXXX
Which suggests to me the problem is neither that
sshd is not running nor that port YY is firewalled. I have checked anyway.
What other problems could there be?
EDIT: The problem seems to have been "self resolving." I could not replicate the following day. I started my local computer up. Perhaps notably I had a different IP address than last time. And now rsync magically works. I'd appreciate guesses as to what it could have been in light of it going away.