2019年1月21日 | Leave a comment 问题: netbeans clone git@***.com 出现 com.jcraft.jsch.JSchException: invalid privatekey netbeans 解决: 检查发现电脑启动了 ssh-agent 执行 ssh-add *** 然后 NB 里边不用设置 private key 解决 参考: https://netbeans.org/kb/docs/ide/git.html#github https://stackoverflow.com/questions/14276246/jsch-getting-invalid-privatekey-while-trying-to-load-an-rsa-private-key-by-ke