warning message "kex protocol error: type 7" during scp, rsync or shell work

Solution 1:

Seems to be a bug in openssh :

http://lists.mindrot.org/pipermail/openssh-unix-dev/2016-August/035350.html

To avoid Problems try to use in your sshd_config:

UsePrivilegeSeparation yes