How to mount object storage in Linux on connectVM Cloud[🔗](#how-to-mount-object-storage-in-linux-on-brand-name "Permalink to this headline") ============================================================================================================================================= S3 is a protocol for storing and retrieving data on and from remote servers. The user has their own S3 account and is identified by a pair of identifiers, which are called Access Key and Secret Key. These keys act as a username and password for your S3 account. Usually, for desktop computers we refer to files within a directory. In S3 terminology, file is called “object” and its name is called “key”. The S3 term for directory (or folder) is “bucket”. To mount object storage in your Linux computer, you will use command **s3fs**. Prerequisites[🔗](#prerequisites "Permalink to this headline") ------------------------------------------------------------- Prerequisite No. 1 **Hosting** To use s3 protocol, you need a connectVM Cloud hosting account. It comes with graphical user interface called Horizon: but you can also use s3 commands from terminal in various operating systems. Prerequisite No. 2 **Valid EC2 credentials** The Access Key and Secret Key for access to an s3 account are also called the “EC2 credentials”. See article [How to generate and manage EC2 credentials on connectVM Cloud](../cloud/How-to-generate-ec2-credentials-on-connectVM-Cloud.html.md) At this point, you should have access to the cloud environment, using the connectVM CLI client. It means that the command **connectVM** is operational. Check your credentials and save them in a file[🔗](#check-your-credentials-and-save-them-in-a-file "Permalink to this headline") ------------------------------------------------------------------------------------------------------------------------------- Check your credentials with the following command: ``` connectVM ec2 credentials list ``` where Access token and Secret token will be used in s3fs configuration: ``` echo Access_token:Secret_token > ~/.passwd-s3fs ``` That command will store the credentials into a file called *passwd-s3fs*. Since it starts with a dot, it will be invisible to the usual searches under Linux. The file will be created in the present directory, but you can also create it anywhere else, for instance, in /etc/ folder and the like. Change permissions of the newly created file ``` chmod 600 .passwd-s3fs ``` Code **600** means you can read and write the file or directory but that none of the other users on the local host will have access to it. Enable 3fs[🔗](#enable-3fs "Permalink to this headline") ------------------------------------------------------- Uncomment “user\_allow\_other” in *fuse.conf* file as root ``` sudo nano /etc/fuse.conf ``` Now you are ready to mount your object storage to your Linux system. The command looks like: ``` s3fs w-container-1 /local/mount/point - passwd_file=~/.passwd-s3fs -o url=https://s3.waw3-1.connectVM.com -o use_path_request_style -o umask=0002 -o allow_other ``` What To Do Next[🔗](#what-to-do-next "Permalink to this headline") ----------------------------------------------------------------- If you want to access s3 files without mounting to the local computer, use command **s3cmd**. [How to access private object storage using S3cmd or boto3 on connectVM Cloud](../s3/How-to-access-private-object-storage-using-S3cmd-or-boto3-on-connectVM-Cloud.html.md)