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

将文件中对应的行更换为下面的数据

shell 复制代码
HostKeyAlgorithms ssh-ed25519,[email protected],rsa-sha2-256,rsa-sha2-512,ssh-rsa
KexAlgorithms curve25519-sha256,[email protected],diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc
重启sshd

systemctl restart sshd

刷新Jenkins网页,重新配置密码连接
相关推荐
再学一丢丢13 分钟前
用户管理和权限管理
linux·运维·服务器
Bardb1 小时前
05--MQTT物联网协议
linux·服务器·阿里云·json
红虾程序员1 小时前
Linux进阶命令
linux·服务器·前端
.R^O^1 小时前
VLAN的知识
linux·服务器·网络·mysql
随猿Fa3 小时前
用密钥方式让通过JumpServer代理的服务器可以在我本地电脑直接访问
运维·服务器
库库林_沙琪马3 小时前
Linux 命令全解析:从零开始掌握 Linux 命令行
linux·运维·服务器
嘿rasa3 小时前
2025最新系统 Linux 教程(二)
linux·运维·服务器
啊吧怪不啊吧4 小时前
Linux常见指令介绍上(入门级)
linux·运维·服务器
网络之路Blog4 小时前
【实战中提升自己】 防火墙完结篇之VPX部署–IPSEC VPX,包括与L2TP共存问题
服务器·网络·网络之路一天·华为华三数通基础·华为华三网络基础·数通基础·华为华三数通
小锋学长生活大爆炸5 小时前
【教程】检查RDMA网卡状态和测试带宽 | 附测试脚本
运维·服务器·网络·ubuntu·网卡·rdma