Enterprise Framework

Software Solutions in the Enterprise

SSH GIT "client_loop: send disconnect: Connection aborted"

SSH GIT "client_loop: send disconnect: Connection aborted"


$ ssh git-codecommit.us-east-2.amazonaws.com
Warning: Permanently added the RSA host key for IP address '52.95.17.51' to the list of known hosts.
client_loop: send disconnect: Connection aborted


Solution:

This can be cause by a low connection.  Try increasing the timeout in your ~/.ssh/config file

Host git-codecommit.*.amazonaws.com
User ABKAUNZRXIY7XGYO6KYX
IdentityFile ~/.ssh/id_rsa
TCPKeepAlive yes
ServerAliveInterval 60
ServerAliveCountMax 100






AWS CodeCommit SSH GIT "Error Permission denied (publickey)" on Windows

AWS CodeCommit SSH GIT "Error Permission denied (publickey)" on Windows

Error:

git clone ssh://123456789012@git-codecommit.us-east-1.amazonaws.com/v1/repos/my-project
Cloning into 'my-project'...
123456789012@git-codecommit.us-east-1.amazonaws.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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


Solution:  Verify .ssh Private and Public Keys


Upload the id_rsa.pub (File with .pub) to source control provider


Solution:  Correct ~/.ssh/config name

Ensure your ~/.ssh/config is named correctly.  (Not ~/.ssh/config.txt)  No .txt


Solution:  Correct ~.ssh/config content

Host git-codecommit.*.amazonaws.com
User APKBULZRXIY7XGYO7KYX
IdentityFile ~/.ssh/id_rsa


Solution:  Try Different SSH Git Clone commands

git clone ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/directory-webapi

or

git clone ssh://123456789012@git-codecommit.us-east-1.amazonaws.com/v1/repos/my-project
or

from Bash Shell Prompt

Without Account Number

GIT_SSH_COMMAND="ssh" git clone ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/my-project

or

With Account Number

GIT_SSH_COMMAND="ssh" git clone ssh://123456789012@git-codecommit.us-east-1.amazonaws.com/v1/repos/my-project