How to do SSH in GCP instance from command line?

+2 votes

Hi Guys,

I have launch one instance in GCP Cloud. I want to do SSH from the command line to this instance. How can I do that?

Aug 24 in GCP by akhtar
• 33,120 points
95 views

1 answer to this question.

0 votes

Hi@akhtar,

You can do SSH to GCP instance from the command line with the help of GCP Cloud SDK. It will internally use putty to login to your SSH. So make sure you have putty in your system. To do SSH you can use the below command.

$ gcloud compute ssh instance_name
answered Aug 24 by MD
• 78,020 points

Related Questions In GCP

+2 votes
1 answer

How to create a VPC on GCP from command line?

Hi@akhtar, To create a personal network, you need ...READ MORE

answered Aug 24 in GCP by MD
• 78,020 points
99 views
0 votes
1 answer

How to delete GCP project from command line?

Hi@akhtar, You can create a project from your ...READ MORE

answered Sep 24 in GCP by MD
• 78,020 points
64 views
0 votes
1 answer

How to create a new project in GCP using the command line?

Hi@akhtar, You need to configure GCP SDK in ...READ MORE

answered Nov 9 in GCP by MD
• 78,020 points
13 views
0 votes
1 answer

How do i delete a RAM disk from my instance on GCP?

You can unmount a tmpfs RAM disk just like ...READ MORE

answered Oct 22, 2019 in GCP by Sirajul
• 58,210 points
157 views
+2 votes
1 answer

How to create a project in GCP Cloud?

Hi@akhtar, To deploy your app on App Engine, ...READ MORE

answered Aug 22 in GCP by MD
• 78,020 points
54 views
+2 votes
1 answer

How to create a project from GCP Cloud Shell?

Hi@akhtar, GCP shell has a command named gcloud. ...READ MORE

answered Aug 22 in GCP by MD
• 78,020 points
62 views
+2 votes
1 answer

How to enable new services to a project in GCP Cloud?

Hi@akhtar, You can enable new services to your ...READ MORE

answered Aug 22 in GCP by MD
• 78,020 points
85 views
+2 votes
1 answer

How to launch one instance on GCP Cloud from command line?

Hi@akhtar, You can compute service in GCP to launch ...READ MORE

answered Aug 24 in GCP by MD
• 78,020 points
80 views
0 votes
1 answer

How to authenticate with the correct account in GCP from Command Line?

Hi@akhtar, You can check your accounts from the ...READ MORE

answered Sep 24 in GCP by MD
• 78,020 points
30 views