Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm getting some kind of warning when checking my connection to github. Why is it happening and how can I resolve it?

$ ssh -TI ~/.ssh/id_rsa git@github.com
dlopen /home/ubuntu/.ssh/id_rsa failed: /home/ubuntu/.ssh/id_rsa: invalid ELF header
Hi mediapop/Gnossem-Magazine! You've successfully authenticated, but GitHub does not provide shell access.
share|improve this question
up vote 12 down vote accepted

You mistaken options -i and -I of OpenSSH.

From man ssh:

-I pkcs11 - Specify the PKCS#11 shared library ssh should use to communicate with a PKCS#11 token providing the user's private RSA key.

-i identity_file - Selects a file from which the identity (private key) for public key authentication is read.

After -I ssh expects shared library and tries to load your id_rsa as shared library, so it expects ELF header.

In this case you can omit -i because ~/.ssh/id_rsa is default file.

share|improve this answer
OH, how very PEBKAC of me. :) – Kit Sunde Apr 17 '12 at 17:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.