Gitblit“权威”ssh密钥生成失败

时间:2013-03-26 01:34:35

标签: git ssh-keys gitblit

我在本地服务器上安装了gitblit,但无法弄清楚为什么我无法运行“Authority”密钥生成器。

失败了
  

C:\ Program Files(x86)\ gitblit> authority INFO使用JCE Unlimited   强弱司法管辖政策文件$ {baseFolder}设置为C:\ Program   文件(x86)\ gitblit \ data线程“AWT-EventQueue-0”中的异常   显示java.lang.NullPointerException           在com.gitblit.authority.GitblitAuthority.load(GitblitAuthority.java:305)   )           在com.gitblit.authority.GitblitAuthority.initialize(GitblitAuthority.ja)   VA:193)           在com.gitblit.authority.GitblitAuthority $ 1.run(GitblitAuthority.java:16   3)           at java.awt.event.InvocationEvent.dispatch(Unknown Source)           at java.awt.EventQueue.dispatchEventImpl(Unknown Source)           在java.awt.EventQueue.access $ 200(未知来源)           在java.awt.EventQueue $ 3.run(未知来源)           在java.awt.EventQueue $ 3.run(未知来源)           at java.security.AccessController.doPrivileged(Native Method)           at java.security.ProtectionDomain $ 1.doIntersectionPrivilege(Unknown Sour   CE)           at java.awt.EventQueue.dispatchEvent(Unknown Source)           at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)           at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)           at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)           at java.awt.EventDispatchThread.pumpEvents(Unknown Source)           at java.awt.EventDispatchThread.pumpEvents(Unknown Source)           在java.awt.EventDispatchThread.run(未知来源)

     

C:\ Program Files(x86)\ gitblit>

这是服务正在运行并且服务已停止。我完全不知道如何在我的系统上生成和使用SSH密钥。

另一方面,如果/当我得到这个位时,如何与Windows中的另一个git ssh密钥(github)并排安装,以便与Powershell一起使用?

1 个答案:

答案 0 :(得分:1)

触发该异常的代码是this one

  config.load();
  // replace user certificate model with actual data
  List<UserCertificateModel> list = UserCertificateConfig.KEY.parse(config).list;   
  for (UserCertificateModel ucm : list) {   
    ucm.user = userService.getUserModel(ucm.user.username);
    map.put(ucm.user.username, ucm);
  }

所以配置必须包含一些可疑的东西,它会返回一个&#39; null&#39; ucm.user

附注:使用ssh配置文件使用几种ssh密钥,如&#34; How to change git ssh user for a remote push temporarily?&#34;所示。