Algorithm negotiation fail SSH in Jenkins

后端 未结 9 1712
梦如初夏
梦如初夏 2020-11-30 05:52

I\'m trying to ssh from Jenkins to a local server but the following error is thrown:

[SSH] Exception:Algorithm negotiation fail
    com.jcraft.jsch.JSchExcep         


        
9条回答
  •  攒了一身酷
    2020-11-30 06:06

    We had the same problem with our jenkins (2.21) and the SSH plugin (2.4)

    Our solution is to use the nativ shell execution. It seems that the jenkins plugins does not use the same ssh connection settings than the nativ shell.

    So you could make the ssh connect like this (without the ssh-plugin):

    ssh user@host <<'ENDSSH'
     echo your remote command here
    ENDSSH 
    

    If you wrap your remote commands with the code above the connection works fine.

    With this solution you dont need the ssh-plugin anymore.

    For your information: We got the problem on our mittwald servers since they upgraded the openssh on there servers.

提交回复
热议问题