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.
- In Keepass Android choose "Open File" and then "SFTP (SSH File Transfer)"
- There you have to enter the connection details:
- Host: $USERNAME.your-storagebox.de
- Port: 23
- Username: Your user name ;-)
4: Authentication mode: Privat/Public Key- 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.
- 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). - 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/
- Initial directory: /home
- Now you can connect and choose your Keepass database file.