2023年12月14日

1、配置用户名、密码

查看配置

$ git config --global -l
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
user.name=xx
user.email=xx@qq.com
http.sslverify=true
winupdater.recentlyseenversion=2.32.0.windows.2
credential.https://gitee.com.provider=generic
url.https://github.com.insteadof=git://github.com

git config --global user.name “username”

2、在~/user/.ssh文件夹下建立config文件

touch config

配置内容为

#ssh -T git@bitbucket.org 测试
#ssh-keygen -t rsa -C 'xx@qq.com' -f ./id_rsa_github

# gitee
Host gitee.com
HostName gitee.com
PreferredAuthentications publickey
IdentityFile ./id_rsa_gitee
# github
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ./id_rsa_github
# bitbucket.org
Host bitbucket.org
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile ./id_rsa_bitbucket

生成的公钥复制到网站上,测试成不 成功

488 ssh -T git@bitbucket.org 489 ssh -T git@gitee.com 490 ssh -T git@github.com

$ ssh -T git@github.com
Enter passphrase for key './id_rsa_github':
Hi xxx! You've successfully authenticated, but GitHub does not provide shell access.

 

posted @ 2023-12-14 09:38 陈-chen 阅读(146) 评论(0) 推荐(0) 编辑
  2022年8月12日
摘要: 参考官方地址 Patch for Chrome login issue (IdentityServer4 + SameSite cookie problem) | ABP 社区 还有vue的项目必须在nginx下跑,我跑在本地,直接有本地的地址打死也不行,用localhost没有问题,后来想到应该是 阅读全文
posted @ 2022-08-12 08:56 陈-chen 阅读(27) 评论(0) 推荐(0) 编辑
  2022年8月5日
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Security; using System.Security 阅读全文
posted @ 2022-08-05 10:28 陈-chen 阅读(67) 评论(0) 推荐(0) 编辑
  2020年3月5日
摘要: ////////////////////////////////////////////////////////////////////////// var url = "XXX"; var cellphone = "xxx"; var msg = "{\"identys\":[\"" + cell 阅读全文
posted @ 2020-03-05 09:44 陈-chen 阅读(1355) 评论(0) 推荐(0) 编辑
  2018年7月27日
摘要: 找到LicenseType的引用,修改引用的方法直接 如switch(X) x=数字,数字为return的标签,再修改LicenseType的枚举为Runtime。 阅读全文
posted @ 2018-07-27 23:42 陈-chen 阅读(6161) 评论(0) 推荐(0) 编辑
  2018年6月2日
摘要: C:\Users\Chenl>tasklist|findstr "5908"360se.exe 5908 Console 1 150,536 K C:\Users\Chenl>tasklist|findstr "2064"KMService.exe 2064 Services 0 4,052 K C 阅读全文
posted @ 2018-06-02 13:49 陈-chen 阅读(179) 评论(0) 推荐(0) 编辑
  2018年5月6日
摘要: https://blog.csdn.net/zenson_g/article/details/49148407 两天,不知道为什么,用Git提交代码到服务器时,总出现SSL certificate problem: unable to get local issuer certificate whi 阅读全文
posted @ 2018-05-06 17:09 陈-chen 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 最近在做winform的按钮权限,要做的怎么和BS中的一样调用前拦截,参考了网上资料,目前最流行的AOP有3个。 POSTSHARP, 这个用不起要收费,还有一个Mono.ceils,这个不能做调试,而且还要对IL 要熟练,最后一个是大名鼎鼎的Castle, 其中Castle 好像AOP都要使用接口 阅读全文
posted @ 2018-05-06 15:21 陈-chen 阅读(726) 评论(0) 推荐(0) 编辑
  2018年4月4日
摘要: https://blog.csdn.net/chengmodelong/article/details/42870485 /// /// /// 字符串转Unicode /// /// 源字符串 /// Unicode编码后的字符串 public static string String2Unicode(string source) { byte[] bytes = Encodin... 阅读全文
posted @ 2018-04-04 08:33 陈-chen 阅读(11981) 评论(0) 推荐(1) 编辑
  2018年4月3日
摘要: 最近在搞单点登录的设计,在设计中需要一个Token令牌的加密传输,这个令牌在整个连接单点的各个站中起着连接认证作用,如果被仿造将会有不可预计的损失,但是这个Token是要可逆的。所以像那种md5,sha之类的不可逆加密就没法用了,然后可逆的加密主要是分为对称加密和非对称加密。 对称加密:用加密的钥匙 阅读全文
posted @ 2018-04-03 15:17 陈-chen 阅读(260) 评论(0) 推荐(0) 编辑
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示