This problem is actually coming from the SCP. Use SCP to transfer backup files between two Linux servers. After you enter the root password, always appear Permission denied, please try again. Wrong words. After modifying the target server root password with the Passwd command, the problem remains the same. Judgment to judge to go, the problem remains.
Find a few solutions online:
1,/home Permission issues
If/home only supports root access, then try/tmp and then transfer with MV command
2,/etc/ssh/sshd_config configuration problem
Some people say that this configuration file has been modified or optimized, find the Permitrootlogin option inside, and change No to Yes
All methods have tried, and even changed passwd, shadow permissions, are invalid. Later, the user was established to grant root permissions, the experiment, success! Since the other accounts can be successful, why not root? Then look at the putty, found the connection SSH, enter the password after the access denied also appear. And the password is true 100% of the correct input.
Finally found a solution, the original problem or out in the sshd_config inside, in the file finally found a allowusers option, in the back plus root and then restart sshd can ....
The code is as follows:
/etc/init.d/sshd restart
Then look at the SSH connection and the SCP command transfer. It's all ready for use.