Hi, I have two accounts in bitbucket and I have to SSH keys setup.
Here is my config file
ssh: Could not resolve
hostname bitbucket.org-{user1}: nodename nor servname provided, or not knownfatal: Could not read from remote repository.
Please make sure you have the correct access rightsand the repository exists.
This error appeared out of nowhere. The day before it worked fine.
I have correctly checked my public keys in both bitbucket accounts in personal settings and they match.
What could I be doing wrong here?
Hi @Irakli Ghachava and welcome to the community!
Based on the output you posted, the part bitbucket.org-{user1} of the repo's URL doesn't seem to be replaced with the host name bitbucket.org.
1. What operation gives you this error, is it a git push or something else?
2. Are you using a command line application or a Git GUI client?
3. Can you try performing the same operation from a command line application, adding GIT_SSH_COMMAND="ssh -vvv" before the command, and post the output here so I can take a look?
If you are executing for example a git push, you can run
GIT_SSH_COMMAND="ssh -vvv" git push
This will show additional output and provide more details on whether a config file is used and which one.
Kind regards,Theodora
Hi @Theodora Boudale .
1. git push and git pull. I have not checked the rest
2. CLI
3. This is the output
OpenSSH_9.0p1, LibreSSL 3.3.6debug1: Reading configuration data /Users/ika/.ssh/configdebug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no filesdebug1: /etc/ssh/ssh_config line 54: Applying options for *debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/ika/.ssh/known_hosts'debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/ika/.ssh/known_hosts2'debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disablingdebug1: Connecting to bitbucket.org-{user1} port 22.ssh: Could not resolve hostname bitbucket.org-{user1}: nodename nor servname provided, or not knownfatal: Could not read from remote repository.
Hi @Irakli Ghachava,
Thank you for the info.
Based on the output, it looks like there is an attempt to read the file /Users/ika/.ssh/config, but there is no message for applying options from this file.
Instead, we see that options are being applied from the file /etc/ssh/ssh_config.
1. Does the configuration you posted in your first post belong to the file /Users/ika/.ssh/config or to the file /etc/ssh/ssh_config?
2. Are you logged in on this computer as the user ika?
3. What are the permissions of the directory /Users/ika/.ssh/ and the file /Users/ika/.ssh/config?
1. It belongs to /Users/ika/.ssh/config
2. Yes
3.
Permissions for /Users/ika/.ssh/
drwx------ 9 ika staff 288 Jun 20 15:12 .ssh
Permissions for /Users/ika/.ssh/config
-rw-r--r-- 1 ika staff 339 Jun 20 15:50 config
It looks like you're new here. Sign in or register to get started.