Linxu system uses SSH to report Access Denied. What should I do?

  

Some Linux users have experienced Access Denied errors when logging in to SSH. How do Linux users solve this problem? Let Xiaobian introduce a solution to everyone now, and users who need it will come and see it.

Solution:

1, /home permissions problem

If /home only supports root access, you can try using /tmp, then use the mv command again Transfer

2, /etc/ssh/sshd_config configuration problem

Some people say that this configuration file has been modified or optimized, find the PermitRootLogin option inside, change no to yes

All methods have been tried, and even the passwd, shadow permissions have been changed. Later, I re-established a user, granted root privileges, experimented, and succeeded! Since other accounts can succeed, why is root not? Look at putty again, found that connected to SSH, after entering the password also appeared Access Denied words. And the password is 100% correct.

Finally found a solution, the original problem is still in the sshd_config, at the end of the file found that there is an AllowUsers option, add root and then restart sshd. . . .

The code is as follows:

/etc/init.d/sshd restart

Let's take a look at the SSH connection and SCP command transfer. Already available.

The above is the solution for the Access Denied error when Linux users log in to SSH. If you encounter this problem, you may wish to try this solution introduced by Xiaobian.

Copyright © Windows knowledge All Rights Reserved