CONTENTS


Lastmodified 2023-07-13 (木) 11:57:08


Debian 11 de OpenPNE3

Debian 11 de Rsync

https://www.server-world.info/query?os=Debian_11&p=rsync

サービスとして起動しておくことで、同期の設定がより詳細に指定可能 且つ Rsync 独自のポート (873/TCP) で接続するため、リモート側での SSH サービスも不要となります。

認証鍵 de パスワードなしに

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 264:本日 1:昨日 0

Counter: 264, today: 1, yesterday: 0

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-07-13 (木) 11:57:08