Send DTD on the resource repository through ssh: Difference between revisions

From Armagetron Advanced
How to send a DTD on the resource repository through ssh
 
Wrtlprnft (talk | contribs)
wikified, added my version of the command.
Line 1: Line 1:
This node is only of use for a very smart target. Be advised.
This node is only of use for a very smart target. Be advised.


The various steps
== The various steps ==


a) Ask Luke-Jr for an account  
# Ask Luke-Jr for an account  
b) provide a certificate to Luke-Jr to avoid password login (optional)
# provide a certificate to Luke-Jr to avoid password login (optional)
b) ssh hachi.dashjr.org
# ssh hachi.dashjr.org
c) sudo -u armagetronad cp /tmp/somefile.dtd /var/www/armagetron/resource/resource/AATeam/somefile.dtd
# sudo -u armagetronad cp /tmp/somefile.dtd /var/www/armagetron/resource/resource/AATeam/somefile.dtd


or rather
or rather


tar cf - <in file> | ssh philippeqc@hachi.dashjr.org "tar xf -; sudo -u armagetronad cp <in file> /var/www/armagetron/resource/resource/AATeam/<out file>"


tar cf - <in file> | ssh philippeqc@hachi.dashjr.org "tar xf -; sudo -u armagetronad cp <in file> /var/www/armagetron/resource/resource/AATeam/<out file>"
or maybe (tar sucks!)
 
cat <in file> | ssh <user>@hachi.dashjr.org "sudo -u armagetronad cat >/var/www/armagetron/resource/resource/AATeam/<out file>"

Revision as of 10:10, 8 August 2006

This node is only of use for a very smart target. Be advised.

The various steps

  1. Ask Luke-Jr for an account
  2. provide a certificate to Luke-Jr to avoid password login (optional)
  3. ssh hachi.dashjr.org
  4. sudo -u armagetronad cp /tmp/somefile.dtd /var/www/armagetron/resource/resource/AATeam/somefile.dtd

or rather

tar cf - <in file> | ssh philippeqc@hachi.dashjr.org "tar xf -; sudo -u armagetronad cp <in file> /var/www/armagetron/resource/resource/AATeam/<out file>"

or maybe (tar sucks!)

cat <in file> | ssh <user>@hachi.dashjr.org "sudo -u armagetronad cat >/var/www/armagetron/resource/resource/AATeam/<out file>"