MobaXterm is my go-to remote access client from Windows. I prefer it to PuTTY for a number of reasons, which I won’t go into detail here, but include better GUI, better saved session information, clearer session info, macros, etc.
Ironically, I find using PuTTY (puttygen specifically) to *create* the key pair is the easiest process. It’s free, and can be used as a Portable App or installed directly. https://mobaxterm.mobatek.net/
Aug 18, 2017 For the How-to Tutorial of how to add a SSH Key for Google Cloud Console: https://docs.bitnami.com/google/faq/. Nov 09, 2018 I had a previous server, an Ubuntu Headless Server, where I had 4096 bit private keys on and it worked fine. I needed new server hardware and needed good dynamic software RAID, so I found OMV and I LOVE IT! The difference between Ubuntu CLI and Debian CLI is not very big and I am starting to like Debian more and more.
Anyhow – here’s how to set up your SSH keys to use it to SSH directly into your GCE rather than connecting through another PG instance.
—————————–
Creating SSH user for external app access. (This part is useful regardless of the client you use.)
1. Install PuTTY: https://www.putty.org/
2. Open “Puttygen” 3. Select the “RSA” button (ensure # of bits is set to 2048) 4. Click on generate and follow the instructions (move your mouse around to generate random info) 5. In the Key Comment textbox, put your email address – it doesn’t matter what email you use, however the part BEFORE the @ symbol will be your login name. I.E. if you use [email protected] your SSH login will be testguy. – Note that without some changes you can’t SSH directly in as root – and you don’t want to. So make sure your user has SU privileges or just switch to the root user after you log in (su root) – but make sure you’v set the root password first or that won’t work either! 6. Save your private key somewhere – you’ll use this location and key later in MobaXTerm 7. Copy all of the text from the top, greyed-out textbox – this is your PUBLIC key !- this will be entered into the GCE Cloud Platform SSH section later, so don’t close PuttyGen yet in case you need to copy it again-!
Adding the key for use in Google Computer Engine – the recommended way (via Google Cloud Platform web interface.)
1. Go to your GCE “Google Cloud Platform Console”: https://console.cloud.google.com/?_ga=2.147913586.-473854088.1546545151
2. Select Compute Engine -> VM Instances 3. Click the name of your VM you want to create the SSH account on. 4. Click “Edit” at the top 5. Scroll down to “SSH Keys” 6. Click the box that says +Add Item 7. Paste the selection from PuttyGen – your public key – into the white box. – it should show the username from the email address you used to create the key – Be sure to follow the instructions carefully. Your key should start with “ssh-rsa AAAA…” not “— BEGIN SSH2 PUBLIC KEY” – More specifically, it should be in the “id_rsa.pub” format if you’re using it from a file instead of copy/paste like I suggest. 8. Scroll down and select “Save”
Adding key to MobaXTerm
![]()
1. Create (or Edit if already created) the SSH Session settings for your GCE SSH connection.
– I assume you know how to create an SSH session in MobaXterm, if not – that’s a different set of instructions. 🙂 2. Go to “Advanced SSH Settings” 3. Click the box for “Use private key” and choose the file you saved earlier when creating the private key. 4. SSH into your GCE, as the user you created. SU to root as needed.
PuTTYgen is a key generator tool for creating pairs of public and private SSH keys. It is one of the components of the open-source networking client PuTTY. Although originally written for Microsoft Windows operating system, it is now officially available for multiple operating systems including macOS, Linux. PuTTYgen.exe is the graphical tool on Windows OS. While on the other side, Linux OS has the only command-line version could be accessible using SSH commands.
Puttygen aka Putty Key Generator
The key generation utility – PuTTYgen can create various public-key cryptosystems including Rivest–Shamir–Adleman (RSA), Digital Signature Algorithm (DSA), Elliptic Curve Digital Signature Algorithm (ECDSA), and Edwards-curve Digital Signature Algorithm (EdDSA) keys.
The aforementioned public-key cryptosystems principally focus on secure data transmission and digital signatures.
Although PuTTYgen collects keys in its native file format i.e. .ppk files, the keys can easily be converted to any file format. For Windows, the software interface is PuTTYgen.exe, whereas, for Linux OS the command-line adaptation is available using SSH commands.
How to use PuTTYgen?
PuTTYgen is used to generate public or private key pair for creating SSH keys. Below is the complete guidance about how to generate RSA key in the Windows operating system:
Various Ways to Use RSA Key Pair
Debian Google Cloud Putty Generate Ssh Key Gitlab
RSA key pair generated through PuTTYgen is used in two various ways defined as below:
Debian Google Cloud Putty Generate Ssh Key Online
PuTTYgen being a component of the terminal emulator PuTTY does not have to be downloaded separately, hence, comes with the PuTTY .msi installation package. You can follow the simple steps to download PuTTYgen software for your system. That is the reason why you don’t need to download PuTTYgen separately. Once you download PuTTY software, you will be able to install and run PuTTYgen easily in no time. Below is the complete instruction about how to download and install PuTTY on Windows.
Apart from that, it is also integrated into third-party programs such as WinSCP installation package. Below you can find a complete PuTTYgen download and installation guide for all operating systems.
Download PuTTYgen on Windows
To download PuTTYgen the primary requisite is to acquire the copy of PuTTY installation package. For the 64-bit operating system, one must install the 64-bit version of PuTTY, i.e. putty-64bit-<version>-installer.msi.Similarly, for the 32-bit operating system, the respective 32-bit version of PuTTY, i.e. putty-<version>-installer.msi needs to be installed.
To get PuTTY, go to PuTTY Installation Download page, whereby the complete installation package will be available with setup instructions, installation guide, and download links to all other components of PuTTY such as putty.exe, pscp.exe, psftp.exe, puttytel.exe, plink.exe, pageant.exe and putty.zip.
Following the successful download of the PuTTY installation package. It is time to install the program. Go to How to install PuTTY on Windows, whereby you will find the step by step guidance for PuTTY installation for Windows operating system.
After successfully downloading and installing PuTTY on your Windows machine, you are just 2-3 clicks away to run PuTTYgen. Follow the below-given step by step guidance to run PuTTYgen:
Run PuTTYgen on Windows
To run PuTTYgen, Go to Windows -> Start Menu -> All Programs -> PuTTY -> PuTTYgen. You will see a window for the PuTTY Key Generator on your screen.
Voila! Now you can generate public or private key pair using PuTTYgen.
Download PuTTYgen for Mac
Below is the detailed guide to download PuTTYgen on Mac operating system. Mac OS has a built-in command-line SSH client known as Terminal. To utilize it, go to Finder and then opt for Go -> utilities from the top menu. After that find the terminal which supports SSH connections to remote servers.
However, to run PuTTYgen for mac, the first one must have to install PuTTY. There are multiple ways to install PuTTY, which are Homebrew or MacPorts. Both alternatives will also install the command-line of adaptations of PuTTYgen.
Ported PuTTY for Mac
Mac has the port of PuTTY which can be installed in various ways described as below:
However, there is an alternative way to install PuTTY on Mac OS. Cyberduck is a widely used Mac OS SSH Client. Once PuTTY installed on the Mac OS, a user can convert PuTTY derived private key format to OpenSSH.
To convert the private key to standard PEM format, type the following command –
puttygen privatekey.ppk -O private-openssh -o privatekey.pem
You can also read the guide to convert .pem file to .ppk using puttygen.
Download PuTTYgen for Ubuntu/Linux
To download PuTTYgen for Ubuntu (Linux) operating system, a user to first install PuTTY. However, in some Linux distributions, the SSH key generation tool – PuTTYgen needs to be installed independently from the PuTTY client.
For example, Debian Linux requires the below-given code to install PuTTYgen:
sudo apt install putty-tools
Generate Key Pair for Authentication in Linux
To create the key pair for authentication in Linux use the below command:-
puttygen -t rsa -b 2048 -C 'user@host' -o keyfile.ppk
Various Command Line Options of PuTTY in Linux
Below are few important command line options in the Linux operating system for PuTTY:
Debian Ssh Enable
PuTTYgen [-t keytype [-b bits] [-q] | keyfile]
[-C new-comment] [-P] [-O output-type | -p | -l | -L] [-o output-file]
Options:
Thus, above are the prominent commands of PuTTYgen in Linux operating system. Besides that, there are many other commands available to perform various tasks from the command prompt in Linux at flank speed.
Types of Keys Supported on PuTTYgen
It is important to know the types of key PuTTYgen supports prior to using it. Below are the key types that it currently supports for SSH-2 and SSH-1 protocol:-
Debian Ssh Keygen
The above description is a detailed brief on downloading and running PuTTYgen on all major operating systems. For further details please check the Download PuTTY page.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |