首页
Search
1
v2ray异常错误之二
3,310 阅读
2
linux时区设置
2,698 阅读
3
DB2常用操作
2,173 阅读
4
websphere修改jvm内存xmx和xms
1,929 阅读
5
nfs客户端文件属主为nobody的现象
1,552 阅读
技术
生活
运动
游戏
电影
登录
Search
标签搜索
docker
linux
troubleshooting
nginx
secure
truenas
mysql
windows
python
esxi
docker swarm
oracle
zabbix
tomcat
blog
dsm
群晖
rpa
freenas
db
yuc
累计撰写
291
篇文章
累计收到
0
条评论
首页
栏目
技术
生活
运动
游戏
电影
页面
搜索到
1
篇与
的结果
2023-07-18
github之访问和认证失败
0x1 先说说墙内如何在github提交或者拉取,首先我们需要一个http/https协议的代理服务,我这边是使用的 privoxy 接着我们配置 git 的代理: git config --global http.proxy http://127.0.0.1:8118 git config --global https.proxy http://127.0.0.1:8118 参考文档: https://gist.github.com/evantoli/f8c23a37eb3558ab8765 按照文档所说,是支持针对某个地址来配置代理的,格式如下: git config --global http.https://domain.com.proxy http://proxyUsername:proxyPassword@proxy.server.com:port git config --global http.https://domain.com.sslVerify false 不过这里我并没有折腾这种方案 在全局配置了 git 代理后,拉取和推送github.com终于算是有弹出内容了(无代理会因为网络问题一直卡住无回显) 0x2 解决了网络问题,又出来了新的问题,在输入了登录邮箱和密码后,回显认证失败: authentication failed 我非常奇怪,并且再三通过网页登录确定了账号密码没有错误,后来又怀疑是仓库权限的问题 在一直无法解决之后经过了一波查阅资料,发现是github不提供账号密码验证方式了,而是使用 token 的方式,所以我们需要创建一个 token 来作为密码验证,步骤如下: Settings / Developer Settings / Tokens(classic) 在网页上操作简单明了,就是权限上为了安全不需要给太多,就选择 repo 即可 拿到了此 token 之后,我们再次在本地执行push到github,在密码处输入此 token 成功了。经过尝试,发现账号处不管输入用户名或者邮箱都是可以的。
2023年07月18日
5 阅读
0 评论
0 点赞