I am able to successfully connect to my copSSH server at home using Putty, but am having difficulty getting rsync to work over the secured connection using the following command. I am trying to copy files from here at work to a backup directory at home using this command:
rsync -avzr homeusername@localhost:"/cygdrive/c/material/" "/cygdrive/d/material/
I have configured Putty to tunnel Port 22.
I placed the same version of rsync in the copSSH server directory at home as the one here at work.
Here's the error I get:
07:41:53.053 Starting a new SSH2 session.
07:41:53.053 Connecting to SSH2 server 204.12.222.120:6666.
07:41:53.053 Connected.
07:41:53.053 Starting first key exchange.
07:41:53.053 Server version string: SSH-2.0-OpenSSH_4.7
07:41:53.053 New host key received. Algorithm: ssh-rsa, Size: 2048 bits, MD5 Fingerprint: 5a:b4:f3:ca:38:d4:bb:bd:81:c3:92:27:eb:53:aa:56, Bubble-Babble: xisaf-pebon-letap-kutaz-zafak-zigaz-tubyc-razys-zugyz-nufud-roxix.
07:41:53.053 First key exchange completed.
07:41:53.053 Key exchange: diffie-hellman-group14-sha1. Session encryption: aes256-cbc, MAC: hmac-sha1, compression: none.
07:41:53.053 Attempting 'password' authentication.
07:41:58.058 Authentication completed.
07:41:58.058 Initializing client-side client-2-server forwarding on 127.0.0.1:22 succeeded.
07:41:58.058 Initializing FTP-to-SFTP bridge on 127.0.0.1:21 succeeded.
07:41:58.058 Initializing SOCKS / HTTP CONNECT proxy on 127.0.0.1:8080 succeeded.
07:42:03.003 Accepted client-side client-2-server connection from 127.0.0.1:1587 to localhost:22.
07:42:04.004 Server rejected our attempt to open a client-side client-2-server connection - reason: SSH_OPEN_CONNECT_FAILED, description: Connection refused.
07:42:04.004 Closing client-side client-2-server connection from 127.0.0.1:1587 to localhost:22, sent: 0, received: 0.
I know I'm doing something wrong but I am close. Can someone please help me out with the correct syntax?
Thank you.