LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-13-2015, 03:48 PM   #1
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
Any reason why Putty would auto login?


I know this is technically a windows question, but I think it still a good one for this forum.

I've disabled pub key auth both in putty and on the server. When I connect, it asks for my username, which I enter, then lets me in with no password. This only happens on one client computer, and in one specific account of that computer, which leads me to believe this is a Putty configuration/bug issue. So if I try to login into the same server account on a different client computer, I get prompted for my password, as expected.

This is weird since Putty doesn't officially support remembering passwords. I have no idea how this could be happening.
 
Old 05-13-2015, 04:14 PM   #2
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 398

Rep: Reputation: 87
> This only happens on one client computer, and in one specific account of that computer, which leads me to believe this is a Putty configuration/bug issue.

Nope, that leads to me to believe password login is disable for that user on that computer.

From man 5 passwd
/etc/passwd contains one line for each user account, with seven fields delimited by colons
(“:”). These fields are:

· login name

· optional encrypted password

· numerical user ID

· numerical group ID

· user name or comment field

· user home directory

· optional user command interpreter

The encrypted password field may be blank, in which case no password is required to
authenticate as the specified login name.
 
Old 05-13-2015, 04:28 PM   #3
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Checked passwd and shadow. Not the issue.

> Nope, that leads to me to believe password login is disable for that user on that computer.

How would the server know which client computer the SSH login is coming from ? By IP? I see no such setting described in man 5 passwd.
 
Old 05-13-2015, 04:52 PM   #4
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 398

Rep: Reputation: 87
The sshd would know.

Go to the machine itself and go to "the Dark Place" (A virtual console (cntrl-alt-f2)

And try login. Now you have removed all complexity of putty and ssh.

(You can get back to "The Light Place" (X windows) by going alt-f7)
 
Old 05-13-2015, 06:05 PM   #5
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
> The sshd would know.

How? What would it know exactly?

UPDATE: Credentials are managed across the organization using Centrify. It looks like it might be caching credentials somehow, since I was able to login without a password via command line from another linux server. It looks like I can login password-less if I'm accessing the server from a resource from which I'm already authenticated, from Centrify's point of view.

In the putty case, I was authenticated via Windows AD and Centrify knew about it. (The other putty instances were from non AD accounts or a different AD account).
In the server to server case, I was autheniticated via SSH from the first server, and Centrify knew about it.

So it looks like this may be a feature.
 
Old 05-13-2015, 08:43 PM   #6
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 398

Rep: Reputation: 87
Sorry, haven't used Centrify, so can't help, beyond saying testing from a virtual console would isolate whether it's and ssh problem or a pam problem.
 
Old 05-13-2015, 08:59 PM   #7
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Confirmed from another source that it is in fact Centrify logging me in automagically. Marking as solved.
 
  


Reply



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
Ubuntu/AD/KRB5/LDAP/NIS able to use domain user login with putty, unable in gui login Nitroglycerine Linux - Server 0 06-28-2012 04:17 AM
putty or ssh auto launcher nand Linux - Networking 2 05-29-2012 12:57 PM
unable login via GUI but can login via Putty (command line) linuxandtsm Linux - Newbie 10 06-09-2011 02:08 PM
Auto-login (KDE) - will not auto-login without monitor attached Mithrilhall Linux - General 2 03-04-2008 10:16 AM
How to configure auto login & after login auto startup some program. hocheetiong Linux - Newbie 1 02-18-2008 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:06 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
Open Source Consulting | Domain Registration