Linux Discovery - SSH Private Keys (Copy Public Key on MID Server host)

vcicchirillo
Tera Contributor

Hi All,

We are configuring ServiceNow Discovery in order to discover Linux Server. 
We are using a MID Server deployed on a Windows machine. 
Based on this KB Article (How to use SSH Key based authentication for Discovery - Support and Troubleshooting), you need to copy the public key to the MID server host, using the following command:

$ ssh-copy-id username@<mid-server host>

This command can be used only if the MID server host is Linux-basedwhat to do instead if the host is Windows?

Thank you,
Vito

5 REPLIES 5

Appli
Mega Sage
Mega Sage

Hi, just to clarify a bit - you want to generate private/public keys on Linux server, and copy Public key from Linux server to Windows server to test if a login (Linux server -> Windows server) over authentication keys works?

Hope it helps

Hi,
Thank you for the reply.

We generated private/public keys for Linux servers, but according to this article (How to use SSH Key based authentication for Discovery - Support and Troubleshooting) the public key needs to be copied on to the remote system where the user intends to log in (so, MID Server). As explained also in the steps of the article, you should "Copy the Public key on the MID Server host machine". We were trying without this step, but the credential test is always failed.

Hi, thank you

Do you have SSH server installed on your Windows based MID server? Usually it is not the case ....

I believe this step in the article is needed if you want to discover MID server (Linux based) itself, or just test a login from the Linux host  (with private key) to the Linux based MID server.

To set up a discovery using Windows based MID server it should be sufficient to only add a public key to Linux server (to be discovered).

Hope it helps

Thank you again for the reply.

So, the article is misleading, because you should add the public key to the Endpoint (Linux Server to be discovered) and not vice versa (copy the "Copy the Public key on the MID Server host machine"). 

Is that correct?