0
rsync xx.xxx.x.xxx::/data/file.txt .

For example, I am seeing others set such a way to transfer files from the /data/ directory without even requiring userid/password. I typically use scp to do:

scp -P 33 root@xx.xxx.x.xxx:/data/ .

The scp requires port and password. How to set rsync as the first case does?

marlon
  • 6,029
  • 8
  • 42
  • 76
  • 1
    Stackoverflow is for questions about programming, not general computer usage; [Superuser](https://superuser.com) and the [Unix & Linux stackexchange](https://unix.stackexchange.com) are better places to ask about things like this. However, we seem to have an old question about this; does ["Is it possible to specify a different ssh port when using rsync?"](https://stackoverflow.com/questions/4549945/is-it-possible-to-specify-a-different-ssh-port-when-using-rsync) solve your problem? (Oh, and you need to use a single colon for ssh; double-colon invokes the native rsync protocol). – Gordon Davisson Dec 14 '22 at 09:06

0 Answers0