LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2015, 01:49 AM   #1
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Rep: Reputation: 38
ssh PasswordAuthentication scheme + Kerberos = invalid user


Hi,

I've spent the best part of the day on this.

Our service team are using an online service (ServiceNow) that needs to access a continuously updated file. I set them up a standard chroot sftp only account but this did not work.

Digging away these are the highlights:

I found in ssh debug mode there was a difference with this app than when a user logged in:

Code:
debug1: userauth-request for user servicenow2 service ssh-connection method password [preauth]
Code:
debug1: userauth-request for user servicenow service ssh-connection method none [preauth]
So that turns out we needed to enable "PasswordAuthenticaion" on the server for this account as this online services sends the username and password rather than using an interactive login. Fair enough.

Next I found that in -ddd mode for ssh we had errors like this:

Code:
input_userauth_request: invalid user servicenow  [preauth]
So I created a local user on the server, used that and we had success.

So somehow using PasswordAuthentication breaks ssh and PAM/kerberos.

Does anyone know how this works and why? It seems like PasswordAuthentication simply does a local user look up and doesn't use PAM. Is there no setting for this?

Thanks for reading.
 
  


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
[SOLVED] PasswordAuthentication for single user battles Linux - Security 14 01-10-2015 10:42 AM
ssh and kerberos error: Server not found in Kerberos database Felipe Linux - Server 1 01-17-2011 04:12 AM
can't log in over SSH, shows invalid user when they really aren't kevinandrews Linux - Server 4 10-23-2010 04:27 AM
Samba/Kerberos : ads_connect: Invalid or incomplete multibyte or wide character Lordandmaker Linux - Networking 0 04-01-2008 06:03 AM
squirremail ...it says invalid user or invalid password. rnj Fedora 9 10-25-2004 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration