Community
Participate
Working Groups
We have multiple (chrooted) ssh servers running on different ports of our cvs server and using different host keys, but Eclipse only looks for one key in known_hosts (the first key it finds). If you have shared projects that use repositories on different ports, Eclipse will only work with the server whose key is listed first in the known_hosts file. Two workarounds: 1. Keep multiple copies of known_hosts, and close Eclipse and switch them when you want to synchronize with a different server. 2. (Linux) Edit your /etc/hosts and add a bogus host name for the server ip, and use that name when adding the repository to Eclipse. This will trick Eclipse into thinking it's a different machine.
Move to Platform/CVS
Thanks for the workarounds.
Since Eclipse SDK 3.3(which used jsch 0.1.31), if the standard port number(22) is not specified, the given port number will be saved in 'known_hosts' file, as the recent OpenSSH's ssh clinet has done. So, you don't have to do such workarounds mentioned at comment #1.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.