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网页,重新配置密码连接
相关推荐
FLGB36 分钟前
Jenkins 集成DingDing 推送
运维·jenkins
Wyc724091 小时前
Linux命令基础,创建,输入,输出,查看,查询
linux·运维·服务器
自律的阿龙2 小时前
Linux练级宝典->多线程
linux·运维·服务器
珹洺2 小时前
计算机网络:(一)详细讲解互联网概述与组成 (附带图谱更好对比理解)
服务器·开发语言·网络·数据库·后端·计算机网络·php
云上艺旅2 小时前
K8S学习之基础二十七:k8s中daemonset控制器
云原生·容器·kubernetes·jenkins
敲上瘾2 小时前
共享内存通信效率碾压管道?System V IPC原理与性能实测
linux·运维·服务器·c++·算法·信息与通信
weixin_408266344 小时前
深度学习-服务器训练SparseDrive过程记录
服务器·人工智能·深度学习
UpUpUp……5 小时前
Linux中Gdb调试工具常用指令大全
linux·运维·服务器·笔记
程序员buddha6 小时前
最节省服务器,手搓电子证书查询系统
运维·服务器