Algorithm negotiation fail SSH in Jenkins

后端 未结 9 1722
梦如初夏
梦如初夏 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:02

    Instead of fixing this on the server side, you can also update the client side. If you use http://maven.apache.org/wagon/wagon-providers/wagon-ssh/ in a newer version (>= 2.12 - current release as of Sep. 2018 is 3.2.0), this problem does not occur anymore.

    
      
      
        
          
            
              org.apache.maven.plugins
              maven-site-plugin
              3.6
              
                
                  org.apache.maven.wagon
                  wagon-ssh
                  3.2.0
                
              
            
          
        
      
      
    
    

    Update 2018-10-21: The latest version is now 3.2.0. Due to various vulnerability issues I'd advise to always use a current version of SSH- or SSL-related software anyway. So please check and update your dependencies in your code.

提交回复
热议问题