mac java ssh框架_在mac上启动ssh可以吗?

我在mac启动ssh,jenkins还是连接不上,mac上的启动ssh命令是

sudo launchctl list | grep sshd

然后可以看到

-0com.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] 连接关闭。Warning: no key algorithms provided; JENKINS-42959 disabled

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值