惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

博客园 - 米粮二斗

人脑训练AI,AI训练人脑,有意思,左脚踩右脚,上天! 随着AI大语言模型的发展,最终全世界会统一到一个词元最少、表达最高效的语言,淘汰到目前大多数低效语言 我们人类就是量子计算机的一端,另一端连接造物主的显示器 IOS设计师是个大傻B 人类本身就是具身智能 以后的设备可能只有浏览器和终端 未来世界太过方便、科技发达,一部分人却怀念起旧时的生活,通过虚拟世界回到现在 现在的AI和人类做梦一样,只有逻辑,无法关联现实规则 计划成立一个反隐私组织 人类独立思考的能力最终会被AI吞噬 越高级智慧的生物可能更小型 人之所以成为人。不是因为达尔文的进化论 关于AI思考 世界一切皆为波 Zed for Windows从源代码编译 一直从小养在鱼缸里的鱼,它能否知道自己在鱼缸里? 操作系统发展随想 量子理论:人们现在所做的不仅可以改变未来,也可改变过去 个人语音信息助理AIS构想 使用MyBatis-Plus报错:Invalid bound statement (not found):无法使用selectById云云 关于git merge和git rebase的一点看法 从源代码构建Qt6开发工具
使用Docker容器运行Jenkins自动化部署工具时,git获取源代码报错:Failed to connect to repository : Command "git ls-remote -h -- ssh:// HEAD" returned status code 128: stdout: stderr: Permission denied, please try again
米粮二斗 · 2021-05-25 · via 博客园 - 米粮二斗

环境:

git服务器是自建的,使用ssh协议获取源代码

jenkins使用docker镜像运行

原因:jenkins docker镜像启动时,一般会加-u root参数,以root用户启动,但主目录仍是/var/jenkins_home
解决:使用docker exec -it ea4a9e93ce1d bash进入容器,在jenkins容器中用root用户创建ssh密钥,然后拷贝到/var/jenkins_home目录;最后使用ssh-copy-id将key拷贝到远程部署主机
详细步骤:
在容器里:
root用户sshgen生成key
.ssh文件夹copy 到/var/jenkins_home
ssh user@host 登录远程主机,首次登录需要选择yes
key copy到部署宿主机目录

命令:docker exec -it ea4a9e93ce1d bash  进入容器

ssh-keygen -t rsa -b 4096 -C "jenkins_user@myPC"  生成密钥
cp -rf /root/.ssh /var/jenkins_home/
ssh -p  22 regit@IP_ADDR  IP_ADDR为git服务器地址
ssh-copy-id -p 22 git-user1@IP_ADDR
ssh -p 22 regit@P_ADDR