Java – reject hostkey: when deploying jars using gradle SSH plug-in

I'm trying to upload jars using gradle and use the gradle SSH plug-in: https://gradle-ssh-plugin.github.io/

Unfortunately, there was an error in target execution

* What went wrong:
Execution Failed for task ':deploy'.
> reject HostKey: SERVERIPADDRESS

How?

I found a similar error in the ant SSH task, which can be fixed with trust = true Unfortunately, I can't find the right choice here

That is, obviously, I need to configure the SSH client so that it accepts the host ID

Solution

Try this:

ssh.settings {
      kNownHosts = allowAnyHosts
 }

P. S: I'm sorry for the editing error. I'm a newcomer to s.o.f

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>