You can use tar, | and ssh to copy a directory on one server to a directory on another server.
tar cpf - /home/connect|(ssh username@hostname "cd /home/connect; tar xpf -")
You may need to prefix sudo to the tar command on the remote server depending on permissions.