[Gllug] Passwordless SSH

James McGuigan james-lists at worldfuturecouncil.org
Mon Sep 5 22:18:12 UTC 2005


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.

Is there an easier way to append (rather than copy) to a file over a network than:
cat | tee -a $file

-- 
Rules are written for those who lack the ability to truly reason,
But for those who can, rules become nothing more than guidelines,
And live their lives governed not by rules but by reason.
     - James McGuigan

Earth Emergency - A Call to Action (www.earthemergency.org)
Sustainable Society Directory (www.sustainable-society.co.uk)
World Future Council Initiative (www.worldfuturecouncil.org)
Open co-op (http://open.coop)
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list