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网页,重新配置密码连接
相关推荐
时光飞逝的日子10 小时前
在不插网线的情况下实现宿主机和VMware虚拟机的双向通信(如使用vscode通过ssh进行远程开发)
ssh·vmware·虚拟机·ping
saber_andlibert10 小时前
【Linux】深入理解Linux的进程(一)
linux·运维·服务器·开发语言·c++
1024find17 小时前
Linux基线配置
linux·运维·服务器
比特森林探险记18 小时前
Golang面试-Channel
服务器·开发语言·golang
yong999018 小时前
安装MariaDB服务器流程介绍在Ubuntu 22.04系统
服务器·ubuntu·mariadb
江湖有缘19 小时前
基于华为openEuler部署webmin服务器管理工具
运维·服务器·华为
_可乐无糖20 小时前
活到老学到老之Jenkins build triggers中的定时schedule规则细讲
linux·jenkins·pipe
wanhengidc20 小时前
本机网速会影响到云手机的运行吗
运维·服务器·安全·游戏·智能手机
蓝黑202020 小时前
阿里云ECS服务器网站配置HTTPS连接
服务器·阿里云·https
博睿谷IT99_21 小时前
Linux 备份与恢复常用命令
java·linux·服务器