[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Public key authentication, *.pub file


Hi Andreas,

I just checked on this. I made 3 patches for this feature. All of them
applied on master, but only one applied on 0.4.

Patch#1: privatekey_from_file() supports unknown keytype. Applied on
both master and 0.4

Patch#2: ssh_userauth_pubkey() supports only passing in private key,
with NULL pubkey. Applied on master.

Patch#3: Add new API ssh_userauth_privatekey_file(), which auto check
the existence of .pub file. Applied on master.

I also check ssh_userauth_autopubkey(), and it still checks for .pub
file, read it and pass to ssh_userauth_pubkey(). So
ssh_userauth_autopubkey is something we missed and needs to be changed.
Since we already have patch#2 and #3, it should be easy to change
ssh_userauth_autopubkey to use ssh_userauth_privatekey_file directly.

Vic

On Fri, 2010-02-19 at 14:21 +0100, Andreas Schneider wrote:
> On Friday 19 February 2010 13:16:27 you wrote:
> > Ok, thank you for explaining it. I was just confused because I copied
> > only the private key after installing new system and then spend quite
> > some time figuring out why it doesn't work. Shouldn't it be in readme
> > or somewhere? :)
> 
> Didn't Vic sent patches that this is possible? Maybe it isn't used in 
> ssh_auth_autopubkey() yet. I don't have time to look at it at the moment.
> 
> 
> 	-- andreas
> 
> 




References:
Public key authentication, *.pub fileGregy <gregy@xxxxxxxx>
Re: Public key authentication, *.pub fileAris Adamantiadis <aris@xxxxxxxxxxxx>
Re: Public key authentication, *.pub fileGregy <gregy@xxxxxxxx>
Re: Public key authentication, *.pub fileAndreas Schneider <mail@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org