Foreword because the previous online server has replaced the IP address, the following problems are recorded in the log when the offline server crontab pulls the backup log (PS: I am a singer while solving the bug at home, nice): Note:
- You must check the logs to find server problems. You cannot guess the logs. For example, you can add the-vvv parameter to solve SSH problems.
The reason is that when the online server changes the IP address and the host key Verification Failed occurs, it is assumed that the know_hosts file can be deleted, but it does not solve the essential problem. Therefore, it is an important solution to view logs.
Mknod-M 644/dev/tty C 5 0 chmod o + RW/dev/tty
The Public/Private Key Authentication solves the above problem and finds that the permission of the SSH directory has been disrupted due to unclear reasons, so the login of the public/private key authentication is not allowed. Here, record the permission settings:
- ~ /. The SSH directory permission must be 0700
- ~ /. Ssh/authorized_keys File Permission must be 0600
Note: "I am a singer" is good, haha!