I recently ran into sync errors after building/installing cardano-node. I am pretty sure that the problem was that I had built the wrong version, after re-building to exactly what the documentation stated, it synced fine. So, this begs the question - is there an easy way to find out what version is running on a remote node?
You could check your startup parameters and note the path to the config file you are using by using
ps -ef | grep cardano-node
There should be a filename after --config
If unchanged, the testnet and mainnet config files are named as such; testnet-config.json and mainnet-config.json.
If the name doesn't suffice, you can check inside this config file which genesis files are used.
Or are you looking for the latest released version of cardano-node? This can be done with the following command:
curl -s https://api.github.com/repos/input-output-hk/cardano-node/releases/latest | jq -r .tag_name
[Source: Guild Operators, Build Node/CLI section]
Not sure if this is checking a remote node, but are you maybe looking for:
cardano-node 1.27.0 - linux-x86_64 - ghc-8.10 git rev 8fe46140a52810b6ca456be01d652ca08fe730bf
cardano-cli 1.27.0 - linux-x86_64 - ghc-8.10 git rev 8fe46140a52810b6ca456be01d652ca08fe730bf
Since Cardano is a network of nodes interacting with each other, each node runs its own version, and as long as the versions are compatible, it should be no issue for them to communicate with one another.