Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Use the AWS console to create a new SSH key named SageKeyPair
  2. Download it to your home directory ~/.ssh on the shared servers
  3. Fix the permissions on it
    Code Block
    chmod 600 ~/.ssh/SageKeyPair.pem
    

Configure S3

...

  1. ssh to belltown
  2. Create the configuration file for s3curl command line tool
    Code Block
    ~>cat .ssh/s3curl 
    #!/bin/perl
    %awsSecretAccessKeys = (
        YourUnixUsername => {
            id => 'YourAccessKeyID',
            key => 'YourSecretAccessKey',
        },
    );
    
  3. Make a symlink to it in your home directory
    Code Block
    ln -s ~/.ssh/s3curl ~/.s3curl
  4. Test that you can run s3curl
    Code Block
    ~>/work/platform/bin/s3curl.pl --id $USER https://s3.amazonaws.com/sagebio-$USER/ | head -c 200
    <?xml version="1.0" encoding="UTF-8"?>
    <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>sagetestemr</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>
    

...