Skip to content

Instantly share code, notes, and snippets.

@wayneseymour
Created June 24, 2019 19:06
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 wayneseymour/cb8a933efcaea499296eb371069cee49 to your computer and use it in GitHub Desktop.
Save wayneseymour/cb8a933efcaea499296eb371069cee49 to your computer and use it in GitHub Desktop.
my ssh is borked
 ~/development/projects/infra/ansible   master  λ ps -ef|grep ssh
  501 85469 23955   0 12:58PM ttys002    0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn ssh
 ~/development/projects/infra/ansible   master  λ eval "$(ssh-agent -s)"
Agent pid 85560
 ~/development/projects/infra/ansible   master  λ ps -ef|grep ssh
  501 85560     1   0 12:58PM ??         0:00.00 ssh-agent -s
  501 85683 23955   0 12:58PM ttys002    0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn ssh
 ~/development/projects/infra/ansible   master  λ ssh -vvvv -F ./ssh_config wayneseymour@10.224.0.222
OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data ./ssh_config
debug1: ./ssh_config line 1: Applying options for *
debug2: checking match for 'exec "bash -c '(echo ${BASTION_OVERRIDE:?}) 2> /dev/null'"' host 10.224.0.222 originally 10.224.0.222
debug1: Executing command: 'bash -c '(echo ${BASTION_OVERRIDE:?}) 2> /dev/null''
debug3: command returned status 127
debug3: ./ssh_config line 7: not matched 'exec "bash -c '(echo ${BASTION_OVERRIDE:?}) 2> /dev/null'"'
debug2: match not found
debug1: ./ssh_config line 59: Applying options for 10.224.*
debug1: ./ssh_config line 68: Applying options for 10.224.*
debug2: resolve_canonicalize: hostname 10.224.0.222 is address
debug1: Executing proxy command: exec vault ssh -role bastion -mode otp wayneseymour@bastion-jenkins.elastic-ci-prod.gcp.elasticnet.co -W 10.224.0.222:22 -F ssh_config
debug1: identity file /Users/tre/.ssh/id_rsa type 0
debug1: identity file /Users/tre/.ssh/id_rsa-cert type -1
debug1: identity file /Users/tre/.ssh/id_dsa type -1
debug1: identity file /Users/tre/.ssh/id_dsa-cert type -1
debug1: identity file /Users/tre/.ssh/id_ecdsa type -1
debug1: identity file /Users/tre/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/tre/.ssh/id_ed25519 type -1
debug1: identity file /Users/tre/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/tre/.ssh/id_xmss type -1
debug1: identity file /Users/tre/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9
wayneseymour@bastion-jenkins.elastic-ci-prod.gcp.elasticnet.co: Permission denied (publickey).
failed to run ssh command: exit status 255
ssh_exchange_identification: Connection closed by remote host
 ✘  ~/development/projects/infra/ansible   master  λ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment