Access Denied when connecting to centos VPS via SSH
Whenever i try to create a account either then the root and login as it i get a error Access is Denied if though the password is correct.
|
I'm assuming you are getting a login when you attempt to SSH to the VPS? The first part is making sure you can actually connect to it, if you get the login prompt that should be good. The other aspect would be making sure the users (non root) have a valid shell and can login normally.
If you can not log in as root, but can as other users: Check /etc/ssh/sshd_config for "PermitRootLogin no" If you can not log in as any users check, this is mostly how user based access is controlled via SSH. /etc/hosts.allow for mention of sshd /etc/hosts.deny for mention of sshd /etc/ssh/sshd_confif for "AllowUsers" and "DenyUsers" |
Quote:
|
I really need someone to help me with this i really made a mistake in purchasing this VPS i should have got abit of Linux knowledge first but can someone help me please
|
if you have an AllowUsers command in your /etc/sshd_config, you should include the root user.
i.e. the following configuration does not allow root to login via ssh: Code:
PermitRootLogin yes |
All times are GMT -5. The time now is 12:31 PM. |