On Aug 24, 2009, at 5:04 AM, Rob Hillis wrote:

> I'm looking at deploying Astlinux into an environment where I will  
> need
> to periodically copy files off the machine - primarily recorded calls
> (which I'm also hoping I can configure to record to RAM, rather than
> permanent storage - but that's a discussion for another time) but also
> logs.  My preferred method to do this is rsync over SSH - however in
> order to automate this, I first need to be able to set an authorised  
> key
> for /root that will persist across reboots.  I can copy an authorised
> key to the /root/.ssh directory without a problem, but it appears that
> this directory is *not* held on my RW partition (unionfs)
>
> Is there something I'm missing, or is this something that currently
> can't be done?

Rob,

If you create the "/mnt/kd/ssh_keys" directory, then any file there  
will be added to the file /root/.ssh/authorized_keys .

IE...
--- snip ---
   if [ -d /mnt/kd/ssh_keys ]; then
     for i in `ls /mnt/kd/ssh_keys`; do
       cat /mnt/kd/ssh_keys/"$i" >> /root/.ssh/authorized_keys
     done
   fi
--- snip ---

Note that /root is not persistent between reboots, so /mnt/kd/ is used  
as persistent storage.

Lonnie


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

Reply via email to