I'm setting up a Minecraft server with Google Cloud. What I did was:
Create VM -> SSH via Bitvise -> sudo su -> apt update && upgrade -> apt install openjdk-17-jre-headless -> apt install wget & screen & git -y & zip -> git clone <URL removed by staff>-> cd mcserver -> chmod +x * -> ./install (this installs Minecraft).
About after I uploaded all mods to the VM via Bitvise, I disconnected and attempted to log back into the VM. Then Bitvise told me auth failed.
I have created 5 VMs so far, all of their SSH stopped being functional after a couple minutes and cannot be logged back into.
Hi @ShirakamiKaiser,
Welcome to Google Cloud Community!
You must create a firewall rule specifically allowing SSH (port 22) traffic to your VM.
Google Cloud Console:
1. Go to "VPC Network" -> "Firewall Rules".
2. Create a new rule:
3. Below is the gcloud command line and parameters to use:
gcloud compute firewall-rules create allow-ssh --allow tcp:22 --target-tags=your-vm-tag
Replace your-vm-tag with the tag you assigned to your VM.
For more information here is gcloud reference.
In addition, if your VM stopped or misconfigured it is recommended to Restart the sshd by running the following command:
systemctl restart sshd.service
Check if there are any errors in the status by running the following command:
systemctl status sshd.service
You may check this documentation to learn more about Troubleshooting SSH error.
If the issue still persists and needs further assistance, please feel free to reach out to our support team.
I hope the above information is helpful.