Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ubuntu: Install s3cmd #AmazonAWS #Markdown


S3cmd is a command line tool for uploading, retrieving and managing data in Amazon S3 and other Cloud Storage Service Providers that use the S3 protocol



Install the package with aptitude.

sudo apt-get install s3cmd

Configure s3cmd.

s3cmd --configure

Enter your Amazon AWS credentials.

Access Key: [your access key]
Secret Key: [your secret key]

Enter an encryption passwort for secure transmissions.

Encryption password: [secure password]

Answert the next prompts as showed below.

Path To GPG programm: [enter]
Use HTTPS protocol [No]: [enter]
HTTP Proxy server name: [depends on your network environment]
Test access with supplied credentials: Y

If you'll get the following message.

Error: Test failed: 4103 (AccessDenied): Access Denied

Try my policy.

  "Statement": [
      "Action": [
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::*"
      "Action": [ 
      "Effect": "Allow",
      "Resource": [
          "arn:aws:s3:::[bucket name]", 
          "arn:aws:s3:::[bucket name]/*"


s3cmd website

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment