Is it possible to specify a different ssh port when using rsync?

后端 未结 8 2099
感动是毒
感动是毒 2020-12-12 08:44

I have been attempting the following command:

rsync -rvz --progress --remove-sent-files ./dir user@host:2222/path

SSH is running on port

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 09:28

    I was not able to get rsync to connect via ssh on a different port, but I was able to redirect the ssh connection to the computer I wanted via iptables. This is not the solution I was looking for, but it solved my problem.

提交回复
热议问题