Why is ssh not using identity set in config file?
Solution 1:
Looks like, your session is not able to access the specified key, and it's falling back to the default one. and it's able to access the bitbucket , but then, you are not able to access the repo with this key so take a look at the repo permissions with that default key /Users/evgenipetrov/.ssh/id_rsa
also check which ssh-keys are loaded into the ssh-agent and load the missing one with ssh-add
Solution 2:
The host needs to match what you are using to ssh or git clone.
So
ssh -vv Repo
That should use the right key.
Also for readability.. space the config correctly
Host Repo
HostName bitbucket.org
User git
IdentityFile ~/.ssh/ynd
LogLevel DEBUG
Also I see this
debug1: identity file /Users/evgenipetrov/.ssh/ynd type 1
debug1: key_load_public: No such file or directory
Check that file is there
Solution 3:
The LogLevel debug helped. I had this in my .ssh/config
Host github.com
HostName github.com
UseKeychain yes
AddKeysToAgent yes
User git
IdentityFile ~/.ssh/id_ed25519
Host github.com-personal
UseKeychain yes
AddKeysToAgent yes
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_personal
but hadn't run ssh-add -K ~/.ssh/id_ed25519_personal
to add it to the keychain to prevent it falling back to the other file.