Skip to content

Instantly share code, notes, and snippets.

@elblivion
Last active August 29, 2015 14:21
Show Gist options
  • Save elblivion/e356a25f49fce39b9579 to your computer and use it in GitHub Desktop.
Save elblivion/e356a25f49fce39b9579 to your computer and use it in GitHub Desktop.
SSH madness
jenkins@ip-172-31-29-151:~$ cp .ssh/id_rsa.pub .ssh/id_rsa.pub.real
jenkins@ip-172-31-29-151:~$ cp .ssh/id_rsa2.pub .ssh/id_rsa.pub
jenkins@ip-172-31-29-151:~$ ssh -i /var/lib/jenkins/.ssh/id_rsa git@github.com
Permission denied (publickey).
jenkins@ip-172-31-29-151:~$ cp .ssh/id_rsa.pub.real .ssh/id_rsa.pub
jenkins@ip-172-31-29-151:~$ ssh -i /var/lib/jenkins/.ssh/id_rsa git@github.com
PTY allocation request failed on channel 0
Hi contentful/ui_integration_suite! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
jenkins@ip-172-31-29-151:~$ ssh -V
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, OpenSSL 1.0.1f 6 Jan 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment