As mentioned above, I need to install only the mongo shell on a RHEL instance (machine A). I have a mongodb server on a separate instance (machine B) and need to connect to that
Official documentation says that you should be fine installing mongodb-org-shell only.
mongodb-org-shell