LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2014, 04:25 AM   #1
seabro
LQ Newbie
 
Registered: Jan 2010
Posts: 26

Rep: Reputation: 0
login using key pairs


> Hi,
>
> *
>
> When I login to my server using a public key, I still have to enter a username.* However, I don’t see a username specified in the public key file.
>
> I haven’t tried using a random username but how does the username relate to the public/private key authentication?
>
> *
>
> Thanks,
>
> *
>
> Seabro
 
Old 09-16-2014, 04:34 AM   #2
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
Please check with the administrator of the server. I don't think they relate to each other but are 2 different authentications.

OK
 
Old 09-17-2014, 02:05 AM   #3
seabro
LQ Newbie
 
Registered: Jan 2010
Posts: 26

Original Poster
Rep: Reputation: 0
Hi, I probably didn't explain clearly. Its my server and key authentication is working. I just wanted to better understand how the username fits into the process.
 
Old 09-20-2014, 01:30 AM   #4
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
You are correct. The Public-private key scheme doesn't have provision in the key itself (which is what you expect) for a user name. In my view, it would defeat the purpose of a unique randomized key pair.

I don't know your specific setup but it may be that the basic (classic) username authentication is wrapped into a private-public key scheme. (key scheme is the wrapper for the username request). If this were so, the server would first authenticate genuineness of request using the key pair and then validate the username against it's list (/etc/passwd, shadow and so on).

OK
 
  


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
Set up Key pairs but have to enter password, Freenas 8 travalon Linux - Newbie 4 03-24-2013 11:23 AM
DNS TXT with multiple key-value pairs williebens Linux - Server 2 03-04-2011 10:12 AM
ssh best practice: key pairs per user or OS? Other considerations? mrtwice Linux - Security 2 04-20-2010 09:41 PM
Public/Private Key Pairs Kissell Linux - Security 3 01-24-2009 04:36 AM
Big Brother? Key Pairs? cwizardone Slackware 1 02-27-2007 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:10 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