[SOLVED] Access Denied message after Putty login

Support for security such as Firewalls and securing linux
Post Reply
MeesterP
Posts: 3
Joined: 2011/10/24 12:18:03

[SOLVED] Access Denied message after Putty login

Post by MeesterP » 2011/10/31 21:43:05

Hi,

I'm just beginning with linux (Centos 6, x86_64), so this might be not a smart question :)

Anybody know how to fix this "Acces Denied" error message I keep getting when logging in to my linux box with SSH using Putty ?
[code]
login as: xxxxxx
[b]Access denied[/b]
xxxxxx@192.168.1.250's password:
[/code]

logging in is not failing, just the weird errormessage is throwing me off...

here a snippit from the /var/secure log, no interesting entries at all
[code]
Oct 31 22:09:12 localhost sshd[6829]: Accepted password for xxxxxx from 192.168.1.2 port 51309 ssh2
Oct 31 22:09:13 localhost sshd[6829]: pam_unix(sshd:session): session opened for user xxxxxx by (uid=0)
[/code]

The user xxxxxx has all privileges according to the sudoers file:
[code]
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
xxxxxxx ALL=(ALL) ALL
[/code]


The messages log has no entries of this at all.


Thanks for any tips ..


Regards,
Paul.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Access Denied message after Putty login

Post by TrevorH » 2011/10/31 21:54:40

[quote]
The user xxxxxx has all privileges according to the sudoers file:
[/quote]

This has nothing to do with the problem or the solution, sudoers is only used when you prefix whatever command you want to run with the word 'sudo'.

Do you have selinux enabled and are there any denials listed in /var/log/messages or in /var/log/audit/audit.log?

User avatar
vonskippy
Posts: 839
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

[SOLVED] Access Denied message after Putty login

Post by vonskippy » 2011/11/01 00:48:16

In Putty Configuration for that session:

SSH-AUTH-GSSAPI

Uncheck both GSSAPI boxes

Then connect and see what happens.

MeesterP
Posts: 3
Joined: 2011/10/24 12:18:03

Re: Access Denied message after Putty login

Post by MeesterP » 2011/11/01 18:27:30

[quote]
TrevorH wrote:
[quote]
The user xxxxxx has all privileges according to the sudoers file:
[/quote]

This has nothing to do with the problem or the solution, sudoers is only used when you prefix whatever command you want to run with the word 'sudo'.

Do you have selinux enabled and are there any denials listed in /var/log/messages or in /var/log/audit/audit.log?[/quote]


-Selinux is enforced - type: targeted.
[code]
SELINUX=enforcing
SELINUXTYPE=targeted
[/code]

- Nothing in /var/log/messages
- No denials in audit.log, everything ends with "success"


Regards,
Paul

MeesterP
Posts: 3
Joined: 2011/10/24 12:18:03

Re: [SOLVED] Access Denied message after Putty login

Post by MeesterP » 2011/11/01 18:30:33

[quote]
vonskippy wrote:
In Putty Configuration for that session:

SSH-AUTH-GSSAPI

Uncheck both GSSAPI boxes

Then connect and see what happens.[/quote]


This was the solution ! At first I thought not, but I had some trouble making the changes in putty stick.

Removing the first checkbox solved the problem.

Thanks !!

Regards,

Paul

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: [SOLVED] Access Denied message after Putty login

Post by AlanBartlett » 2011/11/01 20:43:54

Thank you for reporting back.

For posterity (and on your behalf) the leading post of this thread has been marked [SOLVED].

Post Reply