- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2023-07-13T08:26:41+09:00","default:kuji","kuji")
#author("2023-07-13T11:57:08+09:00","default:kuji","kuji")
CONTENTS
#contents
----
Lastmodified &lastmod;
----
[[Debian 11 de OpenPNE3]]
*Debian 11 de Rsync [#c8e9da22]
https://www.server-world.info/query?os=Debian_11&p=rsync
サービスとして起動しておくことで、同期の設定がより詳細に指定可能 且つ Rsync 独自のポート (873/TCP) で接続するため、リモート側での SSH サービスも不要となります。
**認証鍵 de パスワードなしに [#e32caa6a]
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 &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);