Re: Running a Command Remotely

CACook@quantum-sci.com
Fri, 25 Mar 2011 18:02:59 -0000

I thought it might be something like that, but:

# ssh root@droog ''/sbin/btrfs subvolume snapshot
root@droog:///home/backups.hex/hex-root/
root@droog:///home/backups.hex/hex-root-snap-$(date
+"%Y-%m-%d")''
ERROR: error accessing
''root@droog:///home/backups.hex/hex-root/''



On Friday 25 March, 2011 10:34:53 Stealth wrote:
> A ssh command ?
>
> |ssh -i toto.key root@10.1.1.1 ''ls -la''|
>
> Le 25/03/2011 17:34, CACook@quantum-sci.com a écrit :
> > This is a little off topic, but I haven''t been able to find
an answer elsewhere.  I need to run a command on another machine on my LAN.  I
have a backup server which does weekly rsync backups of the other machines.  But
when the time comes for it to be backed up I do an rsync push to one of the
other machines.  When that''s done I must initiate a BTRFS snapshot of
this machine''s backup on that remote machine.
> >
> > So from my backup server I need to run a command on another machine,
hopefully securely.  Anyone know a way?  Backup server has root privs on all
machines with public key.  I understand the risks, and have been careful with
security on this machine.


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar