[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [jgit-dev] JGit Doesn't check StrictHostKeyChecking Parameter Value in the .ssh Folder?
- From: Tomasz Zarna <tzarna@xxxxxxxxx>
- Date: Fri, 30 Nov 2012 13:25:59 +0100
- Delivered-to: email@example.com
> How does JGit read data from the .ssh folder?
Have a look at https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java
On Fri, Nov 30, 2012 at 12:53 PM, Isuru Haththotuwa
> Hi all,
> I have specified StrictHostKeyChecking parameter value as 'no' in the
> .ssh/config file, in Ubuntu. However, when I try to access a repository I
> still get the error saying UnknownHostException. Is is possible to set this
> programatically with JGit?
> I specified not to check host key since I originally couldn't access a
> remote repository with the repository host's public key in my
> .ssh/known_hosts file. But, I could do this with a git hub repo. (added my
> public key to github repo and added github as a known host in my local
> machine). When I do the same with a different server, I get this error,
> UnknownHostException. How does JGit read data from the .ssh folder? Is there
> a possibility of JGit persisting such data so that it is using the same key
> even when the remote server is different?
> Thanks and Regards,
> jgit-dev mailing list