I am unable to connect a linux tentacle to octopus after reimaging the azure linux machine, I followed a document from octopus to manually install and configure tentacle, then tried to “check health” from octopus
the error log from octopus shows:
Could not connect to SSH endpoint: Permission denied (publickey).
Permission denied (publickey).
Could you check that the public key is in the ~/.ssh/authorized_keys for the user configured in Octopus?
Would you also be able to check the SSH logs/journal to see if there is any indication of why it is failing? It is usually under journalctl -u ssh. It would be worth sending that over to us if there is anything of note in there. You can send it to our private repository here: Support Files - ztony2
Thank you for your reply.
Our Octopus is installed in a windows machine, I can rdp to this instance but there is no .ssh directory under: C:\Users<myusername> in octopus server.
how do I check SSH logs/journal if it is a windows machine?
From the looks of the authorized_keys file you uploaded, it looks like it’s root’s file. From the looks of that file, you will want to check the pubkey (for the key that Octopus is using) is in octotarget’s authorized_keys file? You can find this information in Octopus in Infrastructure → Accounts:
I just had a troubleshooting meeting with my team and found out the issue: the thumbprint in the default config file needs to be updated to the one from octopus UI. once it is updated, the connection is back to normal.