GCP - Configuring a Virtual Machine: Network Tagging, Firewall Rules, SSH Access, Drive Extension, VS Code Integration and Database Installation
Let's create a VPC and VM
Now let's check how many devices attached with VM and available partitions, after connecting with ssh
If we want to telnet here packet won't reach. So let's create a firewall rule. First find our IP Address
Then Create Firewall Rule
Now Let's access the VM with ssh
Data Encrypted with Public key, can be decrypt with private key. But if encrypt with private key, it can't be decrypt with public key
Let's generate a key and add in VM
You can also connect with VSCode's Remote ssh plugin
Now let's create a disk and attach with VM
https://cloud.google.com/compute/docs/disks/format-mount-disk-linux
Let's format the disk before usage
Let's create a folder in VM, Mount the disk and provide permissions
Now, let's configure automatic mounting on VM restart
Notes:
* Firewall rules should be attached with a tag. And tag should be attached with VM.
Additional: DB Install with Docker and access with VS code plugins