How do I set up a global virtual machine instance on google cloud?

0 votes

How can I set up a global VM so anyone that has username@IP and password to be able to login, i.e (ssh user@IP password)?

Oct 22 in GCP by anonymous
• 6,670 points
21 views

1 answer to this question.

0 votes

Log into the VM using gcloud compute ssh VM_NAME or web ssh.

Then edit /etc/ssh/sshd_config and change PasswordAuthentication no to PasswordAuthentication yes and restart sshd service: systemctl restart sshd

After that, you can add user and grant password adduser testuser

Then you can use username and password to log into the VM: ssh testuser@PUBLIB_IP_OF_VM

answered Oct 22 by Sirajul
• 41,000 points

Related Questions In GCP

0 votes
1 answer

How do I create a preemptible virtual machine (VM) instance?

With gcloud compute, use the same instances create command that ...READ MORE

answered Sep 23 in GCP by Sirajul
• 41,000 points
73 views
0 votes
1 answer
0 votes
1 answer

How do I create a Google Cloud Platform (GCP) account?

In order to access the services provided ...READ MORE

answered Sep 20 in GCP by Sirajul
• 41,000 points
89 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 41,000 points
65 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 41,000 points
80 views
0 votes
1 answer

How do I create a VPCN (Virtual private cloud network) on Google Cloud?

You can connect various GCP resources to each ...READ MORE

answered Sep 23 in GCP by Sirajul
• 41,000 points
50 views
0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20 in GCP by Sirajul
• 41,000 points
58 views