Eclipse连接Github出现not authorized

本文介绍了使用Eclipse连接GitHub时遇到的持续登录提示及授权失败的问题,并分享了一种解决方案:通过创建个人访问令牌(PAT)来替代常规密码进行认证。

Eclipse连接Github,git失败,一直要输入Login密码
背景:git命令行一直是好用的
一步步安装了EGit,在连接的时候遇到了问题,一直弹出Login的弹窗并一直让我输入密码,最后还一直在报错GIT not authorized
尝试了换SSH,也是有问题的22端口用不了
解决:建一个TOKEN
https://blog.youkuaiyun.com/peterbearxy/article/details/120838371
跟着一步一步建了一个PAT
然后重新REMOTE-PUSH
在这里插入图片描述
URL还是仓库的URL
User是自己的用户名(不是邮箱,不是昵称,是唯一的那个用户名)
密码就是刚刚生成的PAT(要好好备份!)

后来又试了几次,发现每次PUSH都需要重连……555

org.eclipse.jgit.api.errors.TransportException: https://git.bg.huohua.cn/data/dataplatform/data_code/data_projects/htp/real/bdp_htp_real_flink.git: not authorized at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:252) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:306) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:200) at com.huohua.athena.agent.service.impl.EngineOperServiceImpl.packageJarAsync(EngineOperServiceImpl.java:628) at com.huohua.athena.agent.task.PackageProcessTask.run(PackageProcessTask.java:25) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.eclipse.jgit.errors.TransportException: https://git.bg.huohua.cn/data/dataplatform/data_code/data_projects/htp/real/bdp_htp_real_flink.git: not authorized at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:529) at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:345) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:137) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:123) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1269) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:241) ... 11 more
最新发布
09-16
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值