Skip to content

Instantly share code, notes, and snippets.

@ianfitzpatrick
Created April 11, 2024 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianfitzpatrick/56cdf3de5c5f9e7a93b861286726d959 to your computer and use it in GitHub Desktop.
Save ianfitzpatrick/56cdf3de5c5f9e7a93b861286726d959 to your computer and use it in GitHub Desktop.
Troubleshooting Steps for EYK SSH
As a reminder:
> git remote -v
eyk-stag ssh://git@eyk-builder.giftster-us-east-2.giftster.ey.io:2222/giftster-app-staging.git (fetch)
eyk-stag ssh://git@eyk-builder.giftster-us-east-2.giftster.ey.io:2222/giftster-app-staging.git (push)
----
❯ git push eyk-stag dev
kex_exchange_identification: Connection closed by remote host
Connection closed by 18.189.54.123 port 2222
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
----
Verbose mode on:
> ssh -vvvvA eyk-builder.giftster-us-east-2.giftster.ey.io -p 2222
OpenSSH_9.0p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/ianfitzpatrick/.ssh/config
debug1: /Users/ianfitzpatrick/.ssh/config line 41: Applying options for eyk-builder.giftster-us-east-2.giftster.ey.io
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/ianfitzpatrick/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/ianfitzpatrick/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to eyk-builder.giftster-us-east-2.giftster.ey.io port 2222.
debug1: Connection established.
debug1: identity file id_ed25519_ianatgiftsterdotcom type -1
debug1: identity file id_ed25519_ianatgiftsterdotcom-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.0
kex_exchange_identification: Connection closed by remote host
Connection closed by 3.20.96.241 port 2222
So you can see it's finding my ssh key okay. I tried removing and adding my SSH key to be 100% certain the key was correct.
I also added this to my ~/.ssh/config file:
Host eyk-builder.giftster-us-east-2.giftster.ey.io
HostName eyk-builder.giftster-us-east-2.giftster.ey.io
User git
IdentityFile id_ed25519_ianatgiftsterdotcom
IdentitiesOnly yes
Additionally you can see:
eyk keys:list
=== ianfitzpatrick Keys
ianfitzpatrick ssh-ed25519 AAAA...ftster.com
Per the AI I confirmed that I ran:
- sh-add ~/.ssh/id_ed25519_ianatgiftsterdotcom
> eyk whoami
You are ianfitzpatrick at https://eyk.giftster-us-east-2.giftster.ey.io
❯ eyk perms:list -a giftster-app-staging
=== giftster-app-staging's Users
ian@giftster.com
ianfitzpatrick
iantravel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment