Mount hubic as disk using ovfs

See document of :



[email protected] ~ $ hubic-application
Did you registered an application under your hubic account ? (y/N) y
 ~> Application redirect URL: http://localhost/
 ~> Application client_id: api_hubic_YFZ0ESOoVrrkQP*********************
 ~> Application client_secret: 
1) Setting scope ... OK
 ~> Email: *****@*****.com
 ~> Password: 
2) Granting access ... OK
3) Getting refresh token ... OK

 == Your mount options ==



Using svfs with hubiC

Retrieve a token and a storage URL

HubiC doesn't expose a keystone endpoint but provides an API to directly retrieve a token and a storage URL using your hubiC credentials.

The hubiC API can show these informations when calling the /account/credentials endpoint.

In order to get these values automatically, hubic allows third-party applications to use its API. Authentication is achieved using the OAUTH protocol.

SVFS will handle the job of fetching a token from the hubiC API everytime this is necessary using user-defined applications and their credentials. It comes with a helper command, hubic-application that will handle all the hassle of registring an application in order to use it with svfs (i.e. setting scope, getting request token, getting access token and finally getting your refresh token).

Create an application in your hubiC profile

Go to and add an application. Application name must be unique across hubiC, you can run the hubic-application command to have a unique application name suggested.

Register this application for SVFS

Note application client ID and client Secret and run the hubic-application command. You will be prompted these informations as well as your email and password, then minimum required mount options will be shown at the end of the application registration process.

Access your hubiC data

Using options given within the previous step, you can for instance mount your default hubiC container depending on your system.

Using linux :

sudo mount -t svfs -o hubic_auth=<hubic_auth>,hubic_token=<hubic_token>,container=default hubic /mountpoint

Using OSX :

mount_svfs hubic /mountpoint -o hubic_auth=<hubic_auth>,hubic_token=<hubic_token>,container=default

You can access another's container data from the HubiC webapp using the following URL :


Post: 1970.01.01 08:33

Views: 127

Edit blog

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by josense, Last updated: 2019-04-15 09:45 RSS