I'm trying to use git from eclipse. I'm using Eclipse Kepler
and Egit 3.0
.
All local commands work fine, but I can't connect to the repo.
For example, fetch
fails with java.net.UnknownHostException: my-server
.
The .git for the project is configured so that the origin is set to ssh://my-server/my-project.git
The command git fetch origin
works fine from outside eclipse.
my-server
is an alias that is not set in the DNS, just in the ssh configuration (it is not accessible from the OS, but it is from the ssh client).
In window->preferences->ssh2, the ssh2 home is set to the .ssh
folder of the machine (the one used by the ssh client that accesses origin just fine).
It would seem that the ssh configuration is not accessed properly. Any idea what's wrong, or how I could debug this (for example, the logs of the ssh connection attempt) ?