I am trying to use Rsync to transfer files between servers. However, I used a nonstandard port on one of the servers. This caused trouble, so I changed the port back to 22. Now, when I try to use Rsync it still tries to connect to the non standard port. When I use Webmin for SSH, it tells me that the SSH server isn't running on port 22. If I use Putty, everything works fine, so I know it is set up on port 22. Any suggestions on how to get Rsync and Webmin to notice the change? I've restarted the Rsync service multiple times and I am using Ubuntu Server.
You can invoke rsync from the command using this form:
This way you can specify any option you want to ssh. In the above example, you are specifying the port number.
If you are talking about rsync daemon, it listens by default on the port TCP/873 not TCP/22.