Page 1 of 1

[SOLVED] Access Denied message after Putty login

Posted: 2011/10/31 21:43:05
by MeesterP
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.

Re: Access Denied message after Putty login

Posted: 2011/10/31 21:54:40
by TrevorH
[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?

[SOLVED] Access Denied message after Putty login

Posted: 2011/11/01 00:48:16
by vonskippy
In Putty Configuration for that session:

SSH-AUTH-GSSAPI

Uncheck both GSSAPI boxes

Then connect and see what happens.

Re: Access Denied message after Putty login

Posted: 2011/11/01 18:27:30
by MeesterP
[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

Re: [SOLVED] Access Denied message after Putty login

Posted: 2011/11/01 18:30:33
by MeesterP
[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

Re: [SOLVED] Access Denied message after Putty login

Posted: 2011/11/01 20:43:54
by AlanBartlett
Thank you for reporting back.

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