Using Console
Using CLI
[INSTANCE_NAME]
with the name of your instance.
metadata
section in the output. If you see a ssh-keys
entry, then SSH port is open. To remediate this, delete the ssh-keys
entry.
ssh-keys
entry:
[INSTANCE_NAME]
with the name of your instance.
ssh-keys
entry has been deleted by running the gcloud compute instances describe
command again.
ssh-keys
entry in the output.
Using Python
sourceRanges
parameter to specify the IP ranges that should be allowed to access SSH.