dispatch_protocol_error: type 100 seq 8 Error When Connecting via SSH
When trying to SSH into the Stash instance, the following error is returned from the SSH client:
$ ssh -Tv email@example.com OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 debug1: Reading configuration data /h/.ssh/config debug1: Applying options for l1mtct00 debug1: Connecting to 10.10.10.10 [10.10.10.10] port 7999. debug1: Connection established. debug1: identity file /h/.ssh/id_rsa type 1 debug1: Remote protocol version 2.0, remote software version SSHD-CORE-0.7.0-ATLASSIAN-M3 debug1: no match: SSHD-CORE-0.7.0-ATLASSIAN-M3 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.6 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: sending SSH2_MSG_KEXDH_INIT debug1: expecting SSH2_MSG_KEXDH_REPLY debug1: Host '[10.10.10.10]:7999' is known and matches the RSA host key. debug1: Found key in /h/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /h/.ssh/id_rsa debug1: Server accepts key: pkalg ssh-rsa blen 277 debug1: Authentication succeeded (publickey). debug1: channel 0: new [client-session] debug1: Entering interactive session. dispatch_protocol_error: type 100 seq 8
This error is caused by trying to directly SSH into the Stash server instead of using a Git client to execute native Git operations. We've typically seen this on Windows clients using Msysgit.
Directly SSH'ing into Stash on port 7999 is not allowed and we only permit Git operations to occur using the SSH service provided by Stash. If you need access to the server over SSH to perform operations outside of Stash, the underlying OS will need to be configured to allow this.
Using normal Git operations such as
clone are the only ones supported on the port that Stash is providing SSH access to.