Hi community,
I try to use SSH to clone repository from Ubuntu 14.04 without any success. The same repository is cloned using WIN10 (via Sourcetree app)
Bitbucket is unaccusable via Firefox, I got "Something went wrong" message (error code: 77ee9a4077b9488b93b0e310c7438f59).
When I ping Bitbucket via"ping www.bitbucket.org" I have no ping problems via Ubuntu.
To config the connection, I performed the steps in the link:
https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-linux/
On testing the connection via "ssh -T git@bitbucket.org" command I got:
cisys@cisystems-HP-EliteDesk-800-G1-TWR:~/.ssh$ ssh -T git@bitbucket.org
/home/cisys/.ssh/config: line 2: Bad configuration option: addkeystoagent
/home/cisys/.ssh/config: terminating, 1 bad configuration options
So I deleted the line "AddKeysToAgent yes", so it won't throw any error, but the "ssh -T git@bitbucket.org" command is stuck (no answer is returned)! Entering the command "ssh -vT git@bitbucket.org" (with 'v' flag) throw me the following data, but still stuck on the last line:
EliteDesk:~$ ssh -vT git@bitbucket.org
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /home/cisys/.ssh/config
debug1: /home/cisys/.ssh/config line 1: Applying options for bitbucket.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to bitbucket.org [104.192.141.1] port 22.
debug1: Connection established.
debug1: identity file /home/cisys/.ssh/bitbucket_work type -1
debug1: identity file /home/cisys/.ssh/bitbucket_work-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.11
What can solve the issue?
G'day @DimaP
Welcome to the community!
Based on the issue you faced with SSH, I suspect that it's because you are using an outdated SSH version. As a start, I suggest updating your SSH version to the latest and see if that helps.
I also suggest cloning via HTTPS if updating your SSH is impossible as a workaround.
As for the Firefox issue, I can see that the error translates to a browser issue. Knowing that you have an outdated version of SSH, I highly suspect that the Firefox version is outdated and doesn't play well with Bitbucket. You might need to update the Firefox version or use a different web browser.
I hope this helps.
Regards,
Syahrul
Hi,
Thanks for the reply. I get the same message when i try to connect via Win10 machine (it hangs on the last message):
D:\MetCam>ssh -vT git@bitbucket.org
OpenSSH_for_Windows_9.2p1, LibreSSL 3.7.2
debug1: Connecting to bitbucket.org [104.192.141.1] port 22.
debug1: Connection established.
debug1: identity file C:\\Users\\CI/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\CI/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\CI/.ssh/id_ecdsa type 2
debug1: identity file C:\\Users\\CI/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\CI/.ssh/id_ecdsa_sk type -1
debug1: identity file C:\\Users\\CI/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file C:\\Users\\CI/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\CI/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\CI/.ssh/id_ed25519_sk type -1
debug1: identity file C:\\Users\\CI/.ssh/id_ed25519_sk-cert type -1
debug1: identity file C:\\Users\\CI/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\CI/.ssh/id_xmss-cert type -1
debug1: identity file C:\\Users\\CI/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\CI/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_9.2
is it possible that the reason is Firewall?
Thanks
Dima
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
G'day @DimaP
Can you try cloning via HTTPS to see if that works?
Additionally, when cloning via SSH, please try using the following verbose commands log to see if there's any error:
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -vvv" git clone <URL>
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cloning via HTTPS is working, in addition i can work with Sourcetree app (HTTPS based).
The issue for me is that some of the sources compiled on WIN (so the HTTPS is good enough), but some of the sources must be compiled on Linux (Nsight Eclipse IDE) and SSH is required.
The command output you suggested is:
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -vvv" git clone git@bitbucket.org:ci-systems-metcam/metcam.app.git
09:52:42.708822 exec-cmd.c:244 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
09:52:42.719816 git.c:463 trace: built-in: git clone git@bitbucket.org:ci-systems-metcam/metcam.app.git
Cloning into 'metcam.app'...
09:52:42.764784 run-command.c:659 trace: run_command: unset GIT_DIR; GIT_PROTOCOL=version=2 'ssh -vvv' -o SendEnv=GIT_PROTOCOL git@bitbucket.org 'git-upload-pack '\''ci-systems-metcam/metcam.app.git'\'''
OpenSSH_9.4p1, OpenSSL 3.1.2 1 Aug 2023
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/c/Users/CI/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/c/Users/CI/.ssh/known_hosts2'
debug2: resolving "bitbucket.org" port 22
debug3: resolve_host: lookup bitbucket.org:22
debug3: ssh_connect_direct: entering
debug1: Connecting to bitbucket.org [104.192.141.1] port 22.
debug3: set_sock_tos: set socket 4 IP_TOS 0x48
debug1: Connection established.
debug1: identity file /c/Users/CI/.ssh/id_rsa type -1
debug1: identity file /c/Users/CI/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/CI/.ssh/id_ecdsa type 2
debug1: identity file /c/Users/CI/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/CI/.ssh/id_ecdsa_sk type -1
debug1: identity file /c/Users/CI/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /c/Users/CI/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/CI/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/CI/.ssh/id_ed25519_sk type -1
debug1: identity file /c/Users/CI/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /c/Users/CI/.ssh/id_xmss type -1
debug1: identity file /c/Users/CI/.ssh/id_xmss-cert type -1
debug1: identity file /c/Users/CI/.ssh/id_dsa type -1
debug1: identity file /c/Users/CI/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.4
kex_exchange_identification: read: Software caused connection abort
banner exchange: Connection to 104.192.141.1 port 22: Software caused connection abort
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Finally the reason was found, there were IT firewall policies that caused this issue.
D:\xxxxxxx>git clone git@bitbucket.org:xxxxxxxxxx/xxxxxxxx.app.git
Cloning into 'xxxxxxx.app'...
The authenticity of host 'bitbucket.org (104.192.141.1)' can't be established.
ECDSA key fingerprint is XXXXXXXXXXXXXXXXXXXXXXXX
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Warning: Permanently added 'bitbucket.org,104.192.141.1' (ECDSA) to the list of known hosts.
Enter passphrase for key 'C:\Users\CI/.ssh/id_ecdsa':
Receiving objects: 100% (5158/5158), 926.93 KiB | 2.05 MiB/s, done.
Resolving deltas: 100% (3338/3338), done.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.