jenkins ssh 部署 Can't connect to server 錯誤

enkins ssh 部署 Can't connect to server 錯誤



1.使用Jenkins插件做ssh遠程部署的時候總是提示 Can’t connect to server 
查看日誌有如下提示

org.jvnet.hudson.plugins.SSHBuildWrapper$DescriptorImpl doLoginCheck
SEVERE: Can't connect to server12

2.在網上查看資料得知,是因爲jenkins使用的jsh客戶端驗證算法和ssh服務器不支持有關係,所以需要在服務器端增加支持的算法,所以就把下面的內容,加入sshd_config文件裏即可.

vim/etc/ssh/sshd_config   image.png

KexAlgorithms [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1MACs [email protected],[email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,[email protected],hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章