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网页,重新配置密码连接
相关推荐
未来之窗软件服务3 小时前
服务器运维(六)跨域配置 Preflight 问题——东方仙化神期
运维·服务器·服务器运维·仙盟创梦ide·东方仙盟
AORO20254 小时前
智能三防手机哪款好?22000mAh+夜视+露营灯打造专业户外装备
服务器·网络·智能手机·电脑·1024程序员节
winner88815 小时前
Linux 软件安装 “命令密码本”:yum/apt/brew 一网打尽
linux·运维·服务器
九河云6 小时前
软件开发平台 DevCloud
运维·服务器·数据库·科技·华为云
firstacui6 小时前
DNS高速缓存&分离解析
服务器
思麟呀7 小时前
Linux的基础IO流
linux·运维·服务器·开发语言·c++
Archy_Wang_18 小时前
脚本自动生成专业Linux巡检报告
linux·运维·服务器
piaoxue82010 小时前
MFA MACOS 安装流程
linux·运维·服务器
方知我10 小时前
使用VSCode进行SSH远程连接时无法与xxx建立连接
ide·vscode·ssh
柱子子子子11 小时前
Ubuntu24.04 不能使用todesk 解决办法
运维·服务器