Skip to content

Host key verification failed. #13

@fniko

Description

@fniko

Hi, I am having issues with Docker version of your app using OAuth2
bbbackup.cfg

[authorization]
; enter which auth method to use 'oauth' or 'uidpwd'
auth_method = oauth

[bitbucket_oauth]
; enter oauth 2.0 credentials here
key_or_id = /*OAuth consumers - key*/
secret = /*OAuth consumers - secret*/
app_name = /*OAuth consumers - app name*/

The app is able to read the repositories, but every single one is failing with error:

RETRYING: Try #4 of 3 to clone repo.
REPO SYNC: /clonedbackups/BACKUP_20200524_UTC/repo-name
REPO FAIL: /clonedbackups/BACKUP_20200524_UTC/repo-name
Unable to clone repo repo-name. Exception: Cmd('git') failed due to: exit code(128)
  cmdline: git clone --no-single-branch -v git@bitbucket.org:team-name/repo-name.git /clonedbackups/BACKUP_20200524_UTC/repo-name
  stderr: 'Cloning into '/clonedbackups/BACKUP_20200524_UTC/repo-name'...
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
'

OAuth Customer settings:
image

I understand the error, I could solve this adding public SSH certificate into ~./ssh/known-hosts, however, since this is Docker I should amend the Dockerfile to copy the certificate there every time, but I do not think this is the right approach.

Maybe the only thing which is not clear is Callback URL, what should I put here?

How to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions