Difference between revisions of "Send DTD on the resource repository through ssh"

From Armagetron
(devs only)
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
 
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>"
+
  ssh <user>@hachi.dashjr.org "sudo -u armagetronad tee /var/www/armagetron/resource/resource/AATeam/name-version.dtd" <name-version.dtd
  
or maybe (tar sucks!)
+
[[Category:Development]]
 
 
cat <in file> | ssh <user>@hachi.dashjr.org "sudo -u armagetronad cat >/var/www/armagetron/resource/resource/AATeam/<out file>"
 

Latest revision as of 19:31, 23 August 2021

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

Note, you must already be an Armagetron developer to do this. Other people can submit DTDs manually by emailing them to luke_aaresource@dashjr.org

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

ssh <user>@hachi.dashjr.org "sudo -u armagetronad tee /var/www/armagetron/resource/resource/AATeam/name-version.dtd" <name-version.dtd