Skip to content

Connect with Android Keepass to Hetzner’s Storage Box

Connect with Android Keepass to Hetzner’s Storage Box published on

The goal is to connect Keepass2Android (used version 1.07b-r0) on Android to the Keepass database on a Hetzner Storage Box. In https://blog.chloesoe.ch/?p=546 it is described, how to connect and store your Keepass DB to the Storage Box.

Now we want to connect the mobile phone to that database.

  1. In Keepass Android choose "Open File" and then "SFTP (SSH File Transfer)"
  2. There you have to enter the connection details:
    1. Host: $USERNAME.your-storagebox.de
    2. Port: 23
    3. Username: Your user name ;-)
      4: Authentication mode: Privat/Public Key

      1. choose "Send public key". You could send it via e-mail; the public key is not sensitive. Make sure you send it somwhere, where you can access it like in https://blog.chloesoe.ch/?p=546 described.
      2. Save the public key to a file pubkey_android (you could change the key name at the end of the line of thet new file if you like).
      3. If you safed it like that, then you could run this:
        read -p "Enter your Hetzner's username: " USERNAME
        rsync --progress -e 'ssh -p23'  $USERNAME@$USERNAME.your-storagebox.de:.ssh/authorized_keys .
        cat pubkey_android >> authorized_keys
        rsync --progress -e 'ssh -p23'  authorized_keys $USERNAME@$USERNAME.your-storagebox.de:.ssh/
    4. Initial directory: /home
  3. Now you can connect and choose your Keepass database file.