lsyncdのエラーを調べる

エラーメッセージ:


10月 20 18:03:40 hostname lsyncd[3773]: Host key verification failed.
10月 20 18:03:40 hostname lsyncd[3773]: rsync: connection unexpectedly closed (0 bytes received so far) [sender]
10月 20 18:03:40 hostname lsyncd[3773]: rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]

原因:


[root@hostname /]# vi /etc/lsyncd.conf 
  1 ----
  2 -- User configuration file for lsyncd.
  3 --
  4 -- Simple example for default rsync, but executing moves through on the target.
  5 --
  6 -- For more examples, see /usr/share/doc/lsyncd*/examples/
  7 --
  8  sync{default.rsyncssh, source="/var/www/html", host="localhost", targetdir="/tmp/htmlcopy/"}

デフォルトのやつがコメントアウトしていなかった、ローカルホストに対し接続しようとして、ローカルのセキュリティ設定に弾かれてビビってエラーを返した。

解決策:


  1 ----
  2 -- User configuration file for lsyncd.
  3 --
  4 -- Simple example for default rsync, but executing moves through on the target.
  5 --
  6 -- For more examples, see /usr/share/doc/lsyncd*/examples/
  7 --
  8 -- sync{default.rsyncssh, source="/var/www/html", host="localhost", targetdir="/tmp/htmlcopy/"}

コメントアウトして、解決!

学爾時習之、不亦悦乎? 有朋自遠方来、不亦楽乎? 人不知爾不愠、不亦君子乎?

シェアする

コメントを残す

コメントする

CAPTCHAis initialing...