Not able to SSH to the Namenode/Datanodes

I have access to the console but I don’t know the password to be able to SSH to the namenode and the datanode

You can ssh to gateway node using your lab password.

@Saad_Asif
SSH @gw01.itversity.com
copy the password from console.

I am a bit new to this and honestly don’t understand the entire architecture of the cluster.
I am able to login into the console with my id and password. Is that what you mean by the gateway node?
Previously, I was trying to : ‘ssh root@node01’ from my namespace, I didn’t know the password.
Thanks in advance!