Linxu SSH login for access denied error resolution

Source: Internet
Author: User
Tags ssh root access scp command

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.