Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Stash connection SSH started failing

Peter Walker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 15, 2020

Can access Stash and can see my repository all day long. This just started failing. Last used a couple of weeks ago, Been working file for years. New SSH keys created. Reinstalled Git 2.7, Googled all the relevant answers. Can access on port 7999 and no firewall issues. Stil no luck.

 

`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````

Error from Sourcetree:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin
Could not create directory '/h//.ssh'.
Unable to negotiate with 10.200.49.18 port 7999: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
fatal: Could not read from remote repository.

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

`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````

 

Error from command line:

C:\WINDOWS\system32>ssh -Tv git@stash -p 7999
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
debug1: Reading configuration data __PROGRAMDATA__\\ssh/ssh_config
debug1: Connecting to stash [10.200.49.18] port 7999.
debug1: Connection established.
debug1: identity file C:\\Users\\usgpjw/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\usgpjw/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\usgpjw/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\usgpjw/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\usgpjw/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\usgpjw/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\usgpjw/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\usgpjw/.ssh/id_ed25519-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\usgpjw/.ssh/id_xmss type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\usgpjw/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
debug1: Remote protocol version 2.0, remote software version SSHD-CORE-0.9.0-ATLASSIAN-5
debug1: no match: SSHD-CORE-0.9.0-ATLASSIAN-5
debug1: Authenticating to stash:7999 as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: diffie-hellman-group14-sha1
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: ssh-rsa SHA256:yYdz3MIBhv+D5QYziHuQEekfZd68fenxg+HIiQ0eoAo
debug1: Host '[stash]:7999' is known and matches the RSA host key.
debug1: Found key in C:\\Users\\usgpjw/.ssh/known_hosts:9
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:XGLiVXA8Qh5OG8eH8fysxec4N2IY1g8nV9UiosLsHkc C:\\Users\\usgpjw/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to stash ([10.200.49.18]:7999).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
shell request failed on channel 0

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events