Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Register ssh host?
Register ssh host? [message #647391] Wed, 05 January 2011 18:00 Go to next message
Brian  is currently offline Brian
Messages: 6
Registered: January 2011
Junior Member
How do I register an SSH host for jgit?

com.jcraft.jsch.JSchException: UnknownHostKey: devap1.intellidata.net. RSA key fingerprint is 05:40:1c:ae:0a:41:ba:c7:b2:b0:14:09:ea:04:98:87
	at com.jcraft.jsch.Session.checkHost(Session.java:706)
	at com.jcraft.jsch.Session.connect(Session.java:307)
	at org.eclipse.jgit.transport.SshTransport.initSession(SshTransport.java:134)
	at org.eclipse.jgit.transport.TransportGitSsh$JschConnection.exec(TransportGitSsh.java:212)
	at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:390)
	at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:104)
	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:125)
	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:111)
	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:904)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:126)
	at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:208)
	at net.intellidata.pnfmanager.connector.GitConnector.pull(GitConnector.java:111)
	at net.intellidata.pnfmanager.controller.HomeController.handleRequest(HomeController.java:57)
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
	at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
	at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
	at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
	at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Unknown Source)

[Updated on: Wed, 05 January 2011 18:03]

Report message to a moderator

Re: Register ssh host? [message #647708 is a reply to message #647391] Fri, 07 January 2011 17:35 Go to previous messageGo to next message
Brian  is currently offline Brian
Messages: 6
Registered: January 2011
Junior Member
Can anybody help with this?

[Updated on: Fri, 07 January 2011 17:36]

Report message to a moderator

Re: Register ssh host? [message #648819 is a reply to message #647708] Fri, 14 January 2011 11:18 Go to previous message
m0 is currently offline m0
Messages: 11
Registered: August 2010
Junior Member
Brian wrote on Fri, 07 January 2011 17:35
Can anybody help with this?


Hi Brian,

It is because you don't have the "~/.ssh/known_hosts" defined. Make sure you have an entry there for your host.

I believe you cloned the repository via IDE, since it uses JGit which uses JSch, it doesn't actually save a known_hosts entry for you. If your using native git, it does that automatically for you.

Hope that helped you!

Mohamed Mansour
Previous Topic:Idenifying a repository
Next Topic:I've just downloaded the JGIT-jar, now what?
Goto Forum:
  


Current Time: Fri Apr 25 03:00:48 EDT 2014

Powered by FUDForum. Page generated in 0.03481 seconds