Skip to content

Rsync โดยใช้ ssh port พิเศษ

rsync ผ่าน ssh โดยใช้ default port 22

bash

rsync -razP source-folder/ user@host:destination-folder/

rsync ผ่าน ssh โดยใช้ specify port 1234

bash

rsync -razP -e 'ssh -p <port-number>' source-folder/ user@host:destination-folder/
rsync -razP -e 'ssh -p 1234' source-folder/ user@host:destination-folder/
Tags: