I’m sure you can connect to your single node cluster over ssh using hostname and localhost.
But you are trying to add second node into it, right?
This means that your ssh connectivity should also work same way to your second node.
Make sure you can connect to the second from the first one.
please use script from this post:
and upload results as described.