First we need to generate the Token , KEY ID and Secret key from the Digital ocean console > API > Generate Token > Generate Key. Installation In Centos ###################### cd /etc/yum.repos.d wget http://s3tools.org/repo/RHEL_6/s3tools.repo yum install s3cmd Configuring the S3cmd ##################### s3cmd --configure This will ask for Key Id and Secret Key Region use the default one. No encripytion is necessary, just enter. Say yes for ssl https and finally press enter of HTTP Proxy Now the confiurations will be saved in the ~/.s3cfg file. Open it and add the below entries: access_token = host_base = <region>.digitaloceanspaces.com host_bucket = %(bucket)s.<region> .digitaloceanspaces.com now save the file and exit. Putting a file to Digitial Ocean bucket. ######################################## s3cmd put /home/jino/filetest.txt s3:// <bucket> Reference. ######### https://www.digitalocean.com/docs/api/example-