Skip to content

Cannot get git ssh working via Fork on Azure repos #2697

@CommanderAlchemy

Description

@CommanderAlchemy

It recently just broke on my old laptop, but trying to fix it recently on a new setup.

Issue is that when running fetch against azure i get:
first 3 promts asking for password against my key, then it tries for git@ssh.dev.azure.com

Permission denied, please try again.
Permission denied, please try again.
git@ssh.dev.azure.com: Permission denied (password,publickey).
fatal: Could not read from remote repository.

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

Tried with or without ssh configuration in "Configure ssh keys"
There the password works just fine.

Tried also:

Host ssh.dev.azure.com
    User git
    IdentityFile ~/.ssh/key
    IdentitiesOnly yes

Opening Console via Fork and running git fetch works just fine.
It asks about my key and I enter password and it just works.

I have git4windows installed but fork uses its own instance.
I have added fork's git in my env path in Windows to use same version for all.
I have 1password git ssh agent active (tried to de-activate it)

This is something that started just some week ago on my old laptop. I first thought my key was the issue but have now tried to generate new keys in azure manually and since it works in fork git console thinking its a "fork" issue or some odd configuration?

Windows 11 (up to date)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions