在mac上啟動(dòng)ssh可以嗎?
我在mac啟動(dòng)ssh,jenkins還是連接不上,mac上的啟動(dòng)ssh命令是
sudo launchctl list | grep sshd
然后可以看到
- 0 com.openssh.sshd
但是Jenkins顯示如下
Warning:?no?key?algorithms?provided;?JENKINS-42959?disabled [06/13/18?14:48:38]?[SSH]?Opening?SSH?connection?to?192.168.16.16:22. [06/13/18?14:48:38]?[SSH]?WARNING:?No?entry?currently?exists?in?the?Known?Hosts?file?for?this?host.?Connections?will?be?denied?until?this?new?host?and?its?associated?key?is?added?to?the?Known?Hosts?file. Key?exchange?was?not?finished,?connection?is?closed. java.io.IOException:?There?was?a?problem?while?connecting?to?192.168.16.16:22 at?com.trilead.ssh2.Connection.connect(Connection.java:834) at?hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1324) at?hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:831) at?hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:820) at?java.util.concurrent.FutureTask.run(FutureTask.java:266) at?java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at?java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at?java.lang.Thread.run(Thread.java:745) Caused?by:?java.io.IOException:?Key?exchange?was?not?finished,?connection?is?closed. at?com.trilead.ssh2.transport.KexManager.getOrWaitForConnectionInfo(KexManager.java:95) at?com.trilead.ssh2.transport.TransportManager.getConnectionInfo(TransportManager.java:237) at?com.trilead.ssh2.Connection.connect(Connection.java:786) ...?7?more Caused?by:?java.io.IOException:?The?server?hostkey?was?not?accepted?by?the?verifier?callback at?com.trilead.ssh2.transport.KexManager.handleMessage(KexManager.java:548) at?com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:790) at?com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:502) ...?1?more [06/13/18?14:48:38]?Launch?failed?-?cleaning?up?connection [06/13/18?14:48:38]?[SSH]?連接關(guān)閉。Warning:?no?key?algorithms?provided;?JENKINS-42959?disabled
2018-06-13
建議你先在命令行用? ssh [用戶名]@192.168.16.16? 的方式連接一些對(duì)應(yīng)的機(jī)器,然后系統(tǒng)應(yīng)該提示你是否可以在 know hosts中添加這個(gè)站點(diǎn),選yes ;命令行打通之后,jenkins 也應(yīng)該能夠打通連接這關(guān)。?
2019-12-30
請(qǐng)教大家有遇到過(guò),一直提時(shí) Permission denied(publickey)的問(wèn)題嗎?
2018-07-27
修改配置項(xiàng)可以解決
2018-06-13
我跟老師一樣的操作配置,也出現(xiàn)這個(gè)問(wèn)題,想了下,我的xshell能連接linux,
然后想到是不是jenkins的事,百度下還真有,可能是jenkins版本更新的問(wèn)題。
https://blog.csdn.net/dreamstone_xiaoqw/article/details/79701834