Setting up SSH Keys

  1. Create the RSA Key Pair on home machine
    $ ssh-keygen -t rsa
  2. Store the keys and passphrase
    Push enter twice to the prompts for where to save the key and the passphrase
  3. Copy the public Key to the away machine
    $ ssh-copy-id username@away.machine
    or if ssh-copy-id is not a functioning command
    $ cat ~/.ssh/id_rsa.pub | ssh username@away.machine "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys"

Preparing asteroidbelt files

 

This is an example simple command to move all of the pl.dat files into a single directory from a set of runs.

for dir in Run*; do cp $dir/OUT/dump_pl.dat ../belt/100km-$dir-pl.dat; done

This how to loop through the files to input them into belt_statistics

for run in *pl.dat; do echo $run > temp; ./belt_statistics < temp; don