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,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网页,重新配置密码连接
相关推荐
pengdott19 分钟前
Rocky linux9安装Jenkins最新版本2.585
运维·jenkins·流水线
祖力5541 分钟前
Linux系统移植、烧录与环境的搭建
linux·运维·服务器
skywalk81631 小时前
windows10 explorer占用太多内存问题解决
服务器·内存·windows10·explorer
天意__2 小时前
Linux部署Qwen轻量模型
linux·服务器·qwen
对空六课2 小时前
无头浏览器访问对跳出率的过滤规则
服务器·前端·算法·数据分析
开开心心就好3 小时前
一元二次方程求解工具,答案带详细步骤
java·服务器·开发语言·算法·pdf·ocr·perl
Data analyse4563 小时前
数据埋点设计的事件命名规则校验
服务器·前端·数据分析
Peregrine93 小时前
Linux 基本指令大全
linux·运维·服务器
Huangjin007_4 小时前
【Linux 系统篇(二十八)】文件(五):Ext 系列文件系统(下):Ext2块组结构,inode与文件寻址原理
linux·运维·服务器
javachen__4 小时前
JsonView:一套VO实现多角色字段返回
java·linux·服务器