D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Key-based SSH login for non-interactive user?

 

On Tue, 09 Jun 2009 14:07:20 +0100
James Fidell wrote:

> Grant Sewell wrote:
> > On Tue, 09 Jun 2009 13:37:55 +0100
> > James Fidell wrote:
> >
> > man ssh-keygen says:
> >      -N new_passphrase
> >              Provides the new passphrase.
> > 
> > Can't really see how this would help.
> > 
> > I think I have it sorted anyway:
> 
> Ahh.  I see the problem now... You couldn't log in as the nagios user
> to generate the key because it didn't have a valid shell...
> 
> When you said it "wasn't interactive" I thought you mean that no-one
> would be there to enter the password when the ssh connection was made,
> hence the -N '' option to generate an unpassworded key.
> 
> Not sure there's really any way to do what you wanted without doing
> pretty much what you did, tbh.
> 
> James

Ah, my bad.  Sorry - I should explain myself more clearly.

Yeah, having a quick route around it would seem the case.  Could be
wrong, but certainly it has worked. :)

Grant.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html