[root@from ~]# vi /etc/lsyncd.conf�@���@lsyncd�ݒ�t�@�C���쐬
settings {
statusFile = "/tmp/lsyncd.stat",
statusInterval = 1,
}
sync{
default.rsync,
source="/root/",�@���@�~���[���f�B���N�g��
target="xxx.xxx.xxx.xxx:/tmp/root/",�@���@�~���[��(rsync�T�[�o�[)IP�A�h���X:�~���[��f�B���N�g��
rsync = {
archive = true,
links = true,
update = true,
verbose = false
}
}
[root@from ~]# ssh-keygen -t rsa -N ""�@���@RSA���y�A(���J���^�閧��)�쐬
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):�@���@��ENTER
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:
09:6c:eb:5a:f7:01:fa:32:1b:8c:b2:82:48:b7:c1:c3 root@from.centossrv.com
[root@from ~]# scp .ssh/id_rsa.pub �~���[��IP�A�h���X:/root/.ssh/authorized_keys2�@���@RSA��(���J��)���~���[��փR�s�[
|
|