CONTENTS
Lastmodified 2023-07-13 (木) 11:57:08
https://www.server-world.info/query?os=Debian_11&p=rsync
サービスとして起動しておくことで、同期の設定がより詳細に指定可能 且つ Rsync 独自のポート (873/TCP) で接続するため、リモート側での SSH サービスも不要となります。
https://server-setting.info/centos/rsync-ssh.html
rsync でアクセスする側で、RSA 鍵ペアーを作成し、
# cd # ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa Your public key has been saved in /root/.ssh/id_rsa.pub The key fingerprint is: SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx root@debian The key's randomart image is: +---[RSA 3072]----+ |oo+. . . | |.E.. ..= . | |.o . .+o* o | |..o ...*o. | |. + =.oS | | . = =o.o. | | o.o.+oo.. | | .+++.=.. | | .o.+B | +----[SHA256]-----+
アクセスされる側に公開鍵「id_rsa.pub」をコピーし /root/.ssh/authorized_keys に改名しておく。
なお、/root/.ssh フォルダは、700 /root/.ssh/authorized_keys は、644 のパーミッションとする。
Total access 274:本日 1:昨日 0