Recently while writing new Android code I decided that it's the highest time to have a Git repository not only on my hard drive, but also safe in the Internet. After quick search and finding out that I have accounts at almost every popular service that provides Git hosting, I figured out that one that covers everything I need (wiki, bug tracking, code hosting, forums) is the good old sourceforge.
I used it also with no problems few months ago on another mobile project, so I was hoping that pushing code there will be a piece of cake.
But then when I tried to do it (after configuring the project on the sourceforge site), I got very interesting error:
ssh://USER@git.code.sf.net:22: org.eclipse.jgit.transport.CredentialItem$YesNoType:The authenticity of host 'git.code.sf.net' can't be established. RSA key fingerprint is 86:7b:1b:12:85:35:8a:b7:98:b6:d2:97:5e:96:58:1d. Are you sure you want to continue connecting?
In theory it's nothing bad, you press the "Yes" button and you're done.
But to my surprise there was no "Yes" button :-) Only "OK" and "Details", both of them didn't result in the code being pushed to the sf.net. Restart (as suggested on some sites) didn't help.
I did some googling and it was obvious that what is missing is the entry in the known_hosts file. The sad thing is that putty no longer stores "approved" hosts in that file (it uses registry) and I couldn't find any tutorial suggesting how to add the entry manually (since Eclipse apparently didn't want to do it).
So if you're in the same situation - here's the result of my moment of enlightenment:
Enjoy, I hope it will help you too!
I used it also with no problems few months ago on another mobile project, so I was hoping that pushing code there will be a piece of cake.
But then when I tried to do it (after configuring the project on the sourceforge site), I got very interesting error:
ssh://USER@git.code.sf.net:22: org.eclipse.jgit.transport.CredentialItem$YesNoType:The authenticity of host 'git.code.sf.net' can't be established. RSA key fingerprint is 86:7b:1b:12:85:35:8a:b7:98:b6:d2:97:5e:96:58:1d. Are you sure you want to continue connecting?
In theory it's nothing bad, you press the "Yes" button and you're done.
But to my surprise there was no "Yes" button :-) Only "OK" and "Details", both of them didn't result in the code being pushed to the sf.net. Restart (as suggested on some sites) didn't help.
I did some googling and it was obvious that what is missing is the entry in the known_hosts file. The sad thing is that putty no longer stores "approved" hosts in that file (it uses registry) and I couldn't find any tutorial suggesting how to add the entry manually (since Eclipse apparently didn't want to do it).
So if you're in the same situation - here's the result of my moment of enlightenment:
- In Eclipse switch to "Git Repositories" perspective
- Expand your project, add new Remote repository(I called it "sourceforge") - see http://wiki.eclipse.org/EGit/User_Guide#Adding_a_Remote_Configuration for details
- Paste the URI that sourceforge provides on your project website and the proper password (yes, this time it will work)
- Now Eclipse will ask you if you trust the RSA key fingerprint and will add it to known_hosts file
- "Dry-Run" (should work), "Save"
Enjoy, I hope it will help you too!
Tired of remembering your conference call details? Try Conference Call Dialer for Android - simple solution for your conference call challenges.
Thank you! This saved me a lot of trouble.
ReplyDeleteI am not finding the option to add new remote repository in 'Git Repository Exploring' perspective. Any idea?
ReplyDeleteTahir, please see http://wiki.eclipse.org/EGit/User_Guide#Adding_a_Remote_Configuration for more details. In general you first need to establish your local Git repository (referred as "the project" in the description above), then connect it to remote sourceforce Git repository.
DeleteLet me know if it helped!
I just wanted to say thanks. I ran into the same issue although I wasn't using sourceforge, but gitorious.
ReplyDeleteGood to hear that it helped!
DeleteThis doesn't work anymore with the new ADT distribution (21.1.0), and I haven't figured out a solution yet.
ReplyDeleteI see that I have ADT 21.1.0.v20130206 installed and I am still able to use sourceforge, so a potential workaround is to take the older version of ADT, perform the steps described above and then upgrade to the latest version. I know it's not very cool, but maybe it will work :)
DeleteJust saved me some headache pushing to assembla, cheers!
ReplyDeleteTHANK YOU !
ReplyDeleteThis concept is a good way to enhance the knowledge.thanks for sharing. please keep it up salesforce Online Training Bangalore
ReplyDeleteThanks for your post! I believe there are many who feel the same satisfaction as I read this article! I hope you will continue to have such articles to share with everyone!
ReplyDeleteGitHub Review
Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
ReplyDeleteSalesforce Developer Training
no deposit bonus forex 2021 - takipçi satın al - takipçi satın al - takipçi satın al - takipcialdim.com/tiktok-takipci-satin-al/ - instagram beğeni satın al - instagram beğeni satın al - google haritalara yer ekleme - btcturk - tiktok izlenme satın al - sms onay - youtube izlenme satın al - google haritalara yer ekleme - no deposit bonus forex 2021 - tiktok jeton hilesi - tiktok beğeni satın al - binance - takipçi satın al - uc satın al - finanspedia.com - sms onay - sms onay - tiktok takipçi satın al - tiktok beğeni satın al - twitter takipçi satın al - trend topic satın al - youtube abone satın al - instagram beğeni satın al - tiktok beğeni satın al - twitter takipçi satın al - trend topic satın al - youtube abone satın al - instagram beğeni satın al - tiktok takipçi satın al - tiktok beğeni satın al - twitter takipçi satın al - trend topic satın al - youtube abone satın al - instagram beğeni satın al - perde modelleri - instagram takipçi satın al - instagram takipçi satın al - cami avizesi - marsbahis
ReplyDeletekayseriescortu.com - alacam.org - xescortun.com
ReplyDelete1 bhk flat in ajmer
ReplyDeletekurti palazzo set
sanganeri print sarees
azure expressroute
azure application gateway
azure resource group
azure blueprints
azure firewall
özel ambulans
ReplyDeleteen son çıkan perde modelleri
nft nasıl alınır
minecraft premium
yurtdışı kargo
en son çıkan perde modelleri
uc satın al
lisans satın al