ssh only with password

Gert Doering gert at greenie.muc.de
Wed Mar 24 08:25:04 EST 2004


Hi,

On Tue, Mar 23, 2004 at 11:41:03AM -0700, Bob Proulx wrote:
> > > Also, sometimes people do this with an text editor and accidentally
> > > word wrap the file.  Therefore I recommend simply appending them with
> > > the shell and cat.  These steps will correct any problems here.
> > > 
> > >   mv $HOME/.ssh/authorized_keys $HOME/.ssh/authorized_keys.bak
> > 
> > make that a "cp"...
> 
> Negative.  Using 'cp' would not correct the problem with the original
> file.  It would still be word wrapped.  So 'mv' is better if you are
> trying to start again clean.

Well, I agree on that.  Even so, your example isn't really consistent in
itself - the next line uses "cat $singlefile >>authorized_keys" - so
you'll have only *one* key in there, and the ">>" is no different from
">".

That's why I assumed you meant "append new key to the end, but save the
file in any case".

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert at net.informatik.tu-muenchen.de




More information about the openssh-unix-dev mailing list