Scripting / Automation Accept Server Host-key

Advertisement

Aniruddha
Joined:
Posts:
2
Location:
India

Scripting / Automation Accept Server Host-key

I need to add this script by in my Jenkins build process. In the time of the integration, I'm getting one error. I'm attaching them.
Please tell me how to accept server host key from a batch script or ignore the parameter-

[ If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.

In scripting, you should use a -hostkey switch to configure the expected host key.
(Y)es, (N)o, C(a)ncel (10 s), (C)opy Key, (P)aste key: Cancel
Host key wasn't verified!]

Please help from last 20 days I'm trying but getting a result.

Description: This is the error...

error.jpg

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum