Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 7 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
add comment

Your Answer

 
discard

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.