LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-01-2010, 05:11 AM   #1
xezesis
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
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.
 
Old 12-01-2010, 08:50 AM   #2
/pub/beer/
LQ Newbie
 
Registered: Jun 2010
Distribution: Ubuntu 10.10
Posts: 3

Rep: Reputation: 1
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"
 
1 members found this post helpful.
Old 12-01-2010, 03:55 PM   #3
xezesis
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschwenn View Post
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"
Now I understand what you're saying so should I now go look to see what those files are set to? Once I've checked will report back anyway
 
Old 12-01-2010, 06:44 PM   #4
xezesis
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 04-18-2012, 11:07 AM   #5
erenay
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
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
AllowUsers ayse fatma hayriye
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh access denied putty IanVaughan Linux - Networking 6 12-29-2011 07:57 PM
[SOLVED] CentOS - NFS - Access Denied zer0signal Red Hat 11 10-19-2010 08:15 PM
Unable to Start X in Centos - VPS - SSH mselvaprakash Linux - General 1 10-19-2010 07:40 AM
vsftpd 550 Access Denied on CentOS 5 iLinx Linux - Server 4 07-22-2010 09:51 AM
ssh access denied kokotx1981 Linux - Networking 3 01-28-2008 09:49 AM


All times are GMT -5. The time now is 05:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration