What exactly is the difference between the gcloud compute ssh
comannd and "just" the ssh
command?
I made the observation that even so I can easily connect between two instances using gcloud compute ssh
, i cannot do it with the ssh
command. However, after setting up the ssh-keys manually, the ssh command works fine. But shouldn't the gcloud command handle the key management? And if it is set up one time using gcloud, why is the ssh command not working properly
.
Works fine:
gcloud compute ssh instance_2
gcloud compute shh instance_1
.
Doesn't work without manually setting up the ssh-keys:
ssh instance_2
shh instance_1
.
This question comes from a different problem I had, which drove me nuts for days: OpenMPI: Permission denied error while trying to use mpirun