I have a Linux server remotely, which has GIT and Gitosis configured. The repository is at git.desytec.com/morros. The URL requires authentication because I don't want it to be viewed by others.
When pushing in NetBeans, I use this URL: git@git.desytec.com:morros/.git but when I click Next, this error occurs:
git@git.desytec.com:morros/.git: reject HostKey: git.desytec.com
My local machine is running Windows 7.
I got the "does not support smart HTTP push" on all of my git servers. I converted my server to serve git via SSH and a git user, and it still didn't work until I installed the development version of Netbeans 7.2. I used password authentication instead of SSH keys.
If the error message is talking about 'Hostkey', this is an error related to ssh protocol:
ssh://git@git.desytec.com:morros/.git
If that is the case:
- check your user, user HOME, public and private keys as mentioned in "Netbeans, git, reject hostKey?".
- Make sure this isn't related to a 7.0.1 Netbeans bug.
- And make sure your
known_hosts
file is up to date.
(Also, consider Gitolite, since gitosis is now obsolete, has proven itself problematic in this question)