upload and sync folders with rsync

andrew u frank

Registered
Nov 27, 2018
1
0
1
Wien, Austria
cPanel Access Level
Website Owner
I would like to sync a folder i have on a linux/debian machine with a folder used for my webpage. rsync would be most flexible but I get error messages:
  1. rsync -v aaa.txt [email protected]:/test1
  2. rsync: connection unexpectedly closed (0 bytes received so far) [sender]
  3. rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.2]
what do I wrong?
to make exchanges more flexible, how exchange ssh key?