
8 Dec
2005
8 Dec
'05
9:11 p.m.
On Fri, 2005-12-09 at 10:07 +1300, Bnonn wrote:
Matt Brown wrote:
The redirection is happening on your localhost not on scarlet.
Figures. I always get the "where it's happening" bit wrong.
ssh bnonn(a)scarlet "cat ~/id_dsa.pub >> ~/.ssh/authorized_keys2" will do what you want.
Thanks (:
One thing I forgot to mention. The above command assumes you have already scp'd id_dsa.pub to the remote host. If you haven't done that you probably want a command like cat ~/id_dsa.pub | ssh bnonn(a)scarlet "cat >> .ssh/authorized_keys" If you look at the source for ssh-copy-id (it's a 50 line bash script) you'll see that's basically all it does :) -- Matt Brown matt(a)mattb.net.nz Mob +64 275 611 544 www.mattb.net.nz