You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ChromeOS Linux虚拟机中IntelliJ社区版无法登录GitHub求助

ChromeOS Linux虚拟机中IntelliJ登录GitHub失败的解决办法
  • 检查Linux虚拟机网络连通性

    • 打开虚拟机终端,执行ping github.com,确认能正常解析并连通。如果不通,去ChromeOS设置→高级→开发者→Linux开发环境,开启「允许Linux访问网络」。
    • 再用curl -I https://api.github.com测试HTTPS连接,看是否返回正常的HTTP状态码(比如200或301)。
  • 配置IntelliJ网络代理

    • 打开IntelliJ,依次进入File→Settings→Appearance & Behavior→System Settings→HTTP Proxy
    • 选「Auto-detect proxy settings」,如果Chrome用了代理,就手动填和Chrome一致的代理地址、端口。
    • 点「Check connection」,输入https://github.com测试,确保连接成功。
  • 手动导入GitHub访问令牌

    • 去GitHub官网生成新的个人访问令牌(PAT),勾选repo、user等必要权限。
    • 在IntelliJ里进入File→Settings→Version Control→GitHub,选「Login with token」,粘贴生成的PAT后点「Add」。
  • 检查Linux防火墙规则

    • 终端执行sudo iptables -L,看是否有阻止443端口出站请求的规则。
    • 临时关闭防火墙测试:如果用firewalld就执行sudo systemctl stop firewalld;用ufw就执行sudo ufw disable,之后再尝试登录。
  • 重置IntelliJ网络配置

    • 删除虚拟机里~/.IntelliJIdea2023.2/system/http-proxy目录下的所有文件,重启IntelliJ后再试登录。

内容的提问来源于stack exchange,提问作者Kannan J

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 01:03:11