[Gllug] Passwordless SSH
Nix
nix at esperi.org.uk
Tue Sep 6 12:00:13 UTC 2005
On Mon, 05 Sep 2005, James McGuigan gibbered uncontrollably:
> Nix wrote:
>> On Fri, 26 Aug 2005, James McGuigan spake:
>>
>>>cat ~/.ssh/id_dsa.pub | ssh remote.host.org tee -a ~/.ssh/authorized_keys
>>
>> Congratulations! You are the Useless Use of Cat Award Winner for August 2005!
>
> While you could turn it around:
> (ssh remote.host.org tee -a ~/.ssh/authorized_keys) < ~/.ssh/id_dsa.pub
>
> It does make it a little more awkward to type.
The brackets are unnecessary, though, so it's less awkward, and you can put the
redirection at the start if you like it. :)
> Is there an easier way to append (rather than copy) to a file over a network than:
> cat | tee -a $file
Not that I know of.
--
`... published last year in a limited edition... In one of the
great tragedies of publishing, it was not a limited enough edition
and so I have read it.' --- James Nicoll
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list