当前位置: 首页 > news >正文

jenkins通过ssh连接远程服务器出错解决方案(Algorithm negotiation fail)

错误截图

在这里插入图片描述
jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [192.168.13.104]. Message [Algorithm negotiation fail]]

将需要连接的目标服务器通过电脑ssh连接

编辑文件:vim /etc/ssh/sshd_config
将文件中对应的行更换为下面的数据

HostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-512,ssh-rsa
KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc
重启sshd

systemctl restart sshd

刷新Jenkins网页,重新配置密码连接

相关文章:

  • 【愚公系列】《高效使用DeepSeek》003-DeepSeek文档处理和其他顶级 AI模型的区别
  • 基于ssm的一家运动鞋店的产品推广网站的设计
  • 爱立信与 SAP 设定 S/4HANA 企业迁移新基准
  • Webpack 知识点整理
  • Redis 常用数据类型
  • 【哈希表与字符串的算法之路:思路与实现】—— LeetCode
  • 【鸿蒙开发】Hi3861学习笔记- 外部中断
  • 江科大51单片机笔记【17】红外遥控电机调速
  • Chart GPT、DeepSeek 辅助学习H3C网络工程师考试(一)
  • 【Linux 服务之ollama 部署过慢问题】
  • Caffeine 缓存:简介、优势及应用场景
  • InSAR计算rng和az方向分辨率的方法
  • Ceph(1):分布式存储技术简介
  • visual studio编译fortran
  • 如何在电脑上使用 Jupyter Notebook 通过 SSH 远程连接树莓派Zero
  • C++ STL 详解 ——vector 的深度解析与实践指南
  • Android LeakCanary使用与原理深度解析
  • 第P7周:马铃薯病害识别(VGG-16复现)
  • UI程序的std::cout重定向输出到Visual Studio的debug输出窗口
  • 【C++项目实战】校园公告搜索引擎:完整实现与优化指南
  • 工程公司名字/长沙网站优化效果
  • wordpress文学模版/seo优化服务商