rsyncを見直した
通常リモートでrsyncをしているんだが、対向のsshdがデフォルトの22番ポートを利用してない場合、普通にやったのではrsyncできない。
軽く調べてちょいちょいやってはみたものの、どうにもこうにもという感じだった。
rsync /path/to/dir hoge@example.com:SSH_PORT:/path/to/dir とか rsync -e ssh:SSH_PORT/path/to/dir hoge@example.com:/path/to/dir など。 二つとも駄目だった。 ※SSH_PORTは対向のsshdのポート番号
もう一度manを見直してリトライしたところうまくいった。
rsync -e 'ssh -p SSH_PORT' hoge@example.com:/path/to/dir
manは重要だね。