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, 2020 in GCP by akhtar
• 38,180 points
229 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, 2020 by MD
• 95,240 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, 2020 in GCP by MD
• 95,240 points
301 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, 2020 in GCP by MD
• 95,240 points
238 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, 2020 in GCP by MD
• 95,240 points
118 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
• 59,090 points
275 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, 2020 in GCP by MD
• 95,240 points
134 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, 2020 in GCP by MD
• 95,240 points
263 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, 2020 in GCP by MD
• 95,240 points
207 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, 2020 in GCP by MD
• 95,240 points
171 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, 2020 in GCP by MD
• 95,240 points
98 views