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.
Best Answer
You mistaken options
-i
and-I
of OpenSSH.From
man ssh
:After
-I
ssh expects shared library and tries to load yourid_rsa
as shared library, so it expects ELF header.In this case you can omit
-i
because~/.ssh/id_rsa
is default file.