How to enable SSH on Google Cloud Compute Engine

Last day I was riddling with Evilginx, a phishing attack tool. It needs to be hosted online somewhere in the cloud to get it working. I will write a blog on how to use it and how to to phishing attacks on several web application such as Facebook and Gmail. This time I am talking about configuring SSH access with a Google cloud instance. I acquainted with Amazon AWS while setting up my own blog and I never worked with Google Cloud. So to setup Evilginx I decided to go for Google cloud so that I can get good hands on with compute engine as well. I was able to setup a new project and create a virtual machine pretty quick. The toughest part for me was setting up SSH access to the instance. I didn’t like the web SSH client since I wanted to transfer several contents from my local machine. I had to do a little research because I couldnt easily find one single blog post which deals with the scenario. And so I decided to write a blog post on how to setup SSH with Google cloud compute engine. 

How to SSH from command-line to Google Cloud instance

In order to enable third party client SSH you first need to install Google Cloud SDK. To install gcloud-sdk on your Linux machine, type

$curl | bash

This will install smoothly if you have configured python2 environment in your machine properly. Here’s a video tutorial if in case you find it difficult to do that.

Sometimes the installation may throw the below error if you haven’t configured Python 2.7 environment properly.

Welcome to the Google Cloud SDK!
Traceback (most recent call last):
  File "/home/pratos/google-cloud-sdk/lib/third_party/enum/", line 364, in __getattr__
    return cls._member_map_[name]
KeyError: '_convert'

Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Leave a Comment

Recent Posts

How to migrate from LastPass to Bitwarden

As a LastPass user, you might have noticed the changes introduced last day. The message… Read More

2 years ago

Amazon AWS network security checklist

This post presents with a few bunches of AWS network security checklist. It is basically… Read More

3 years ago

The long curated web security checklist based on OWASP

What is this web security checklist? Here is a curated web security checklist for developers… Read More

3 years ago

Penetration Testing for dummies – Part 3: Networking basics

In the last part of the blog series we have seen the history of internet… Read More

3 years ago

Penetration Testing for dummies – Part 2: Understanding web applications

Welcome back budding pen-testers. :) In the first part of the blog series we have… Read More

4 years ago

Kali/Ubuntu stuck at blank screen; No icons, unity or gnome : Fixed

I have been using an older version of Kali Linux. I used to update occasionally.… Read More

4 years ago