- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 Windows 上运行 Apache Netbeans 12,我真的很难使用 SSH 连接连接到我的 github 存储库。
我强烈的印象是,长期以来,这一直是 Netbeans 用户的一个问题。
到目前为止我尝试过的:
Dev builds, but true as long as I can remember. I am unable to useNetBeans to perform any Git operations requiring SSH authentication:pushing to GitHub, pulling from a private repository, etc. The sameoperations using command-line Git work fine, but in NetBeans I amprompted for a username and password, or for a private key withpassphrase. This is unnecessary from the command line as I usessh-agent to unlock my private key without needing to type in thepassphrase every time; apparently the Git library used by NB does notmanage to communicate with ssh-agent so it fails.
“Seems that the automatic use of ssh-agent is now working; maybe wasonly broken for repositories which I had tried to push/pull from inNetBeans prior to this fix.”
John Gibson commented on GitLab CE issue #624(https://gitlab.com/gitlab-org/gitlab-ce/issues/624#note_299061) thathe encountered a similar error. He explains that he "discovered thatall of the available ciphers on the server were at least 256 bits.Standard Oracle Java ships with crypto that's restricted to 128 bitsfor some algorithms. After installing the unlimited strength cryptopackage from Oracle the issue went away. Note that the unlimitedstrength package is only legally available in the US. If you'reoutside of the US then I think that OpenJDK will work instead."
I followed the link he mentioned(http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html),downloaded the Java Cryptography Extension (JCE) Unlimited StrengthJurisdiction Policy Files 7 and followed the steps in the readme-filethat came with the download.
“Current versions of the JDK do not require separate unlimited policyfiles. They are provided for use with older versions. The unlimitedpolicy files for earlier releases are required only for JDK 7 updatesearlier than 7u171.”
最佳答案
我正在使用 macOS 并且能够解决这个问题,但是事情的顺序有点棘手。
首先进入 SSH 文件夹并删除已知主机(或从中删除 GitHub 部分):
cd ~/.ssh
rm known_hosts
然后按照
"Invalid privatekey" when using JSch 中的说明更改 key 格式:
cp yourkeyfile yourkeyfile.bak
ssh-keygen -p -f yourkeyfile -m pem
然后验证它是否正常工作(在要求继续时输入
yes
,这将再次创建已知主机文件):
ssh -T git@github.com
如果 NetBeans 仍在运行,请关闭它并重新启动它。
关于github - 无法在 Netbeans 12 中使用 Team -> Git -> Clone 向导来使用 SSH 连接到 github 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62918236/
我正在开发一个 voip 调用应用程序。我需要做的是在接到来电时将 Activity 带到前台。我在应用程序中使用 Twilio,并在收到推送消息时开始调用。 问题是我试图在接到任何电话时显示 Act
我是一名优秀的程序员,十分优秀!