Knowledge Base
Tutorials
Tutorials
  • How to install Joomla 4.2.2 on Ubuntu 20.04?
  • How to set and execute environment and shell variables in Linux?
  • How to employ Docker containers?
  • How to access PostgreSQL Image?
  • How to add and delete users on Ubuntu 20.04?
  • How to add swap space on Ubuntu 20.04?
  • How to back up, restore, and migrate a MongoDB database on Ubuntu 20.04?
  • How to configure additional SSH keys to your public cloud instance?
  • How to configure static IP on Ubuntu?
  • How to create a CLI with Python Fire on Ubuntu 22.04?
  • How to create a new user and manage permissions in MySQL?
  • How to create an instance with Terraform?
  • How to import and export a MongoDB database on Ubuntu 20.04?
  • How to install 7zip on Ubuntu 20.04?
  • How to install AIDE on Ubuntu 22.04?
  • How to install Anaconda on Ubuntu 20.04?
  • How to install and use Docker on Ubuntu 20.04?
  • How to install and use Elinks on Ubuntu 20.04?
  • How to install and use PostgreSQL on Ubuntu 20.04?
  • How to install Android Studio on Ubuntu 22.04?
  • How to install Angular on Ubuntu 20.04?
  • How to install Ansible on Ubuntu 20.04?
  • How to install Apache Kafka on Ubuntu 20.04?
  • How to install Apache Maven on Ubuntu 20.04?
  • How to install Asterisk on Ubuntu 20.04?
  • How to install Atom Text Editor on Ubuntu 20.04?
  • How to install Blender on Ubuntu?
  • How to install CFEngine3 on Ubuntu 20.04?
  • How to install Code::Blocks on Ubuntu 20.04?
  • How to install Composer on Ubuntu 22.04?
  • How to install Curl on Ubuntu 20.04?
  • How to install Desktop GUI on Ubuntu 20.04?
  • How to install Discord on Ubuntu 22.04?
  • How to install Django on Ubuntu 20.04?
  • How to install Docker Compose on Ubuntu 20.04?
  • How to install ELK on Debian 10 or Debian 11?
  • How to install Fail2ban on Debian 10?
  • How to install FFmpeg on Ubuntu 20.04?
  • How to install Flask on Ubuntu 20.04?
  • How to install Fish Shell in Ubuntu 20.04?
  • How to install Gedit on Ubuntu 20.04?
  • How to install Git on Ubuntu 20.04?
  • How to install Gitea on Ubuntu 20.04?
  • How to install Gitlab on Ubuntu 20.04?
  • How to install Go on Ubuntu 20.04?
  • How to install Google Chrome on Ubuntu 20.04?
  • How to install Gradle on Debian 10?
  • How to install Gradle on Ubuntu 20.04?
  • How to install Grafana on Ubuntu 20.04?
  • How to install Hadoop on Ubuntu 20.04?
  • How to install Homebrew on Linux?
  • How to install JAVA with APT on Ubuntu 20.04?
  • How to install Julia on Ubuntu 20.04?
  • How to install Jupyter on an Ubuntu Linux VM?
  • How to install Kdenlive on Ubuntu 20.04?
  • How to install Logwatch on Ubuntu 20.04?
  • How to install MariaDB on Ubuntu 22.04?
  • How to install Memcached on Debian 10?
  • How to install Microsoft Edge Browser on Ubuntu 22.04?
  • How to install MongoDB on CentOS 7?
  • How to install MongoDB on Linux?
  • How to install Mono on Debian 10?
  • How to Install Mono on Ubuntu 20.04?
  • How to install Mozilla Firefox on Ubuntu 20.04?
  • How to install MySQL on Ubuntu 22.04?
  • How to install Nagios on Ubuntu 20.04?
  • How to install Nginx on CentOS 8?
  • How to install Nginx on Ubuntu 22.04?
  • How to install Node.js on Ubuntu 22.04?
  • How to install NVIDIA CUDA on Ubuntu 20.04?
  • How to install Nvidia Optimus Driver on Ubuntu 22.04?
  • How to install OpenCV on Ubuntu 20.04?
  • How to install Perl on Ubuntu on 22.04?
  • How to install Pacman on Ubuntu 20.04?
  • How to install phpMyAdmin on Ubuntu 20.04?
  • How to install PIP on CentOS 8?
  • How to install Plex media server on Ubuntu 20.04?
  • How to install Podman on Ubuntu 20.04?
  • How to install Poetry on Ubuntu 22.04?
  • How to install Postman on Ubuntu 20.04?
  • How to install ProcessWire on Ubuntu 20.04?
  • How to install PyQuery package on Ubuntu 20.04?
  • How to install Python 3 on Ubuntu 22.04 and set up a programming environment?
  • How to install Python on Windows 10 using UI and Windows command prompt?
  • How to install R on Ubuntu 20.04?
  • How to install Ruby on Rails on Ubuntu 20.04?
  • How to install Ruby on Ubuntu 20.04 and setup programming environment?
  • How to install Rust on Ubuntu 22.04?
  • How to install Samba on Ubuntu 20.04?
  • How to install Skype on Ubuntu 20.04?
  • How to install Rancher on Ubuntu 20.04?
  • How to install Slack on Ubuntu 20.04?
  • How to install Springboot on Ubuntu 20.04?
  • How to install Spyder IDE in Ubuntu?
  • How to install Steam on Ubuntu 20.04?
  • How to install Strapi for Production on Ubuntu 20.04?
  • How to install TeamViewer on Ubuntu 20.04?
  • How to install TensorFlow on Ubuntu 20.04?
  • How to install Apache Web Server on Ubuntu 20.04?
  • How to install the Deno JavaScript Runtime on Ubuntu 20.04?
  • How to install Open LiteSpeed Web Server on Ubuntu 22.04?
  • How to install Sublime Text Editor on Ubuntu 20.04?
  • How to install tix package on Ubuntu 20.04?
  • How to install Vagrant on Ubuntu 20.04?
  • How to install Vim on Ubuntu 20.04?
  • How to install VirtualBox on Ubuntu 20.04?
  • How to install VLC Media Player on Ubuntu 20.04?
  • How to install VMware Workstation Player on Ubuntu 20.04?
  • How to install vscode on Ubuntu 20.04?
  • How to install Webmin on Ubuntu 20.04?
  • How to install Wine on Ubuntu 20.04?
  • How to install WordPress on Ubuntu 20.04?
  • How to install Xibo on Ubuntu 20.04?
  • How to install Zoom on Ubuntu 20.04?
  • How to install Yarn on Ubuntu 20.04?
  • How to keep Ubuntu 22.04 servers updated?
  • How to monitor system authentication logs on Ubuntu 20.04?
  • How to perform basic administration tasks for Storage Devices in Linux?
  • How to set up Jenkins on Ubuntu 20.04?
  • How to setup OpenVPN on Ubuntu 20.04?
  • How to setup time synchronization on Ubuntu 20.04?
  • How to setup a UFW on an Ubuntu or Debian Cloud Server?
  • How to setup SSH keys in Ubuntu 20.04?
  • How to SSH terminal through MobaXterm and PuTTY in Windows?
  • How to Use Ansible to Install and Set Up Docker on Ubuntu 20.04?
  • How to view system users on Ubuntu 20.04?
  • How to make OpenStack accessible through CLI?
  • How to make Block Storage available for Linux?
  • Script for automated incremental backups
  • How to configure a Git repository using Linux CLI?
  • How to enable remote access on MySQL?
  • How to Mount a S3 Bucket on Linux Instance?
  • How to access MySQL database credentials?
  • How to create an incremental backup using CLI?
  • How to set up web-based SQL server on OpenStack instance using SQL image?
Powered by GitBook
On this page
  • Overview
  • Prerequisites
  • Connecting SSH Terminal through MobaXterm
  • Connecting SSH through Putty in Windows

Was this helpful?

How to SSH terminal through MobaXterm and PuTTY in Windows?

PreviousHow to setup SSH keys in Ubuntu 20.04?NextHow to Use Ansible to Install and Set Up Docker on Ubuntu 20.04?

Last updated 1 year ago

Was this helpful?

Overview

The ability to access devices remotely is so essential that we now find it difficult to imagine life without it. This ability has become so ingrained in our lives that we take it for granted. Depending on the OS you are using, there are a variety of ways to connect to a remote workstation of which SSH is predominantly used. Secure Shell, or SSH, is a technology used to log onto remote servers securely. It is the preferred method for gaining access to remote Linux servers.

In this tutorial, we will learn how to connect SSH remotely with MobaXterm and PuTTY.

Prerequisites

  • Ubuntu 20.04

  • Remote Linux server

  • Internet connection

Connecting SSH Terminal through MobaXterm

Step 1: Installing MobaXterm

If you don’t have MobaXterm already installed, you may download the latest version of MobaXterm from the , where you have the option of using Home Edition, which is freely available or Professional edition, which has a paid plan per user.

Step 2: Running MobaXterm

Once installed, run the MobaXterm application.

Step 3: Locating SSH

i. From the menu bar, click on Session, as shown in the image below.

A window will prompt, containing several connection options like SSH, RDP, Telnet, FTP, SFTP, Shell etc. and asking you to choose a session type.

ii. Now, click on SSH from the prompted menu.

The SSH connection window is active now, you just need to specify the connection particulars to go ahead.

Step 4: Setting up the Configurations for Connection

i. Enter Remote host address (IP address), Specify username (you may leave it to default as well), and port number (by default port number is 22), as explained below:

  • Remote host: Enter the Internet Protocol address that ensures your device's connection with the remote server.

  • Username- Fill in the name of your instance image. You can rename it later on with the root privileges. Also, keep in mind that these usernames are case-sensitive.

  • Port number- When a message from the internet or another network enters a server, a port number can be used to specify the particular process to which the message should be delivered.

iii. After selecting the private key pair file, click OK.

If you see the login screen, as shown below, that means you are successfully connected to the server.

Step 7: Connecting the Terminal

  1. Fill in your username i.e. name of your instance image for example- ubuntu, debian, etc. If you have chosen the specific username in Step 5, your server will automatically get connected. Therefore, you may skip this step.

You are now connected to your server, start entering the desired commands to proceed.

Connecting SSH through Putty in Windows

For establishing a connection through Putty, you need Putty Key Generator as well. PuTTYgen is a utility that generates SSH keys for PuTTY. Similar to the ssh-keygen utility used in various other SSH implementations. Creating public and private key pairs is the principal function of PuTTygen.

PuTTY uses its own format to store keys, often called .ppk files. However, the utility has the option of several conversion options into other file types.

Step 1: Download PuTTY

.exe extension depicts the executable file, which can run on your computer like an application and hence proves to be an easier way for the user.

Step 2: Run PuTTY Key Generator

Step 3: Loading existing key pair for Authentication

As you must have generated a private key pair, while creating your instance, you do not need to generate a new one.

  1. Click on Load, to load an already created existing key pair from your computer.

ii. To access all the types of files from your computer, you need to click on the down arrow key and select All files (*.*) option. As PuTTY Key Generator has .ppk (PuTTY Private Key Files) extension and it only shows .ppk files by default. Moving on you may search for your private key by entering the File name in the search bar.

Step 4: Generating Private key in .ppk format

As soon as your saved private key gets loaded, PuTTYgen displays a message in a pop-up window giving the instructions for using it with the PuTTY with a suitable format. Below attached image has the appropriate highlights in red for your reference:

  1. Click Ok on the PuTTYgen Notice message.

For creating a new key pair, select the kind of key to generate from the bottom of PuTTY Gen's screen. For the majority of users, SSH-2 RSA with a 2048-bit key size is recommended. Another well-known alternative is ECDSA, which is a suitable option because of its smaller key length and efficient security.

ii. Click on Generate.

Putty uses randomness to generate uniqueness in the key. Therefore, you are required to hover your mouse over the Puttygen window. As the exact movement of the hovering mouse cannot be predicted, this process of moving mouse is done to protect it from hackers and attackers. This process of key generation takes time according to the size of the key from a few seconds to several minutes.

As the green bar advances, the process comes to an end.

Step 5: Saving the private key

  1. You may set a passphrase or password to protect your newly created private key. If you do not wish to set any password, just click Yes in the PuTTYgen warning window, as done in the image below.

ii. Save your private key with a unique name.

iii. Don’t forget to set the file type as .ppk format, if not chosen directly by the software application.

Step 6: Configuring PuTTY for secure connection

There are numerous options available in the initial setting window. For typical use, the majority of them are not required. The following are the main areas you need to look upon. These fields are marked red for your reference:

HostName: Hostname or IP address is a unique address that provides identification to a device on the internet or the local network. With a known hostname or IP address, you should be able to SSH into any machine that has the server-side programme on it.

  1. Fill in your server’s IP address.

Port field: The connection's TCP/IP port is specified in the port field. The port is used for Secure Shell Communication and enables remote operation of the desired VM (Virtual Machine). The default port value remains 22, but can be altered and assign a different port, if you need to connect to a different port for any reason or in case of running multiple servers simultaneously.

ii. Type in the desired port number, on which you want the SSH connection.

Type of Connection: Among the given connection options, you need to stick-on to the SSH connection. SSH is a safe, encrypted communication technology that is intended to keep your data and password as safe as possible.

iii. By default, the connection type is SSH, so you need not make any changes here.

Step 7: Loading .ppk Private Key in PuTTY

Moving forward, we need to upload the private key that we created using PuTTY Key Generator in Steps 3 to 5 above.

Note: Refer to the consecutively attached screenshots, highlighted in red, for your reference in each step.

  1. You may easily find the category field in the left navigation menu, scroll down and click on SSH.

  2. From the sub-options, below SSH, click on Auth.

  3. Below Auth, click on the Credentials, now you must be prompted to an authentication page with credentials.

iv. In the private key section, click on Browse, which will open up your local computer’s browsing window.

v. Select your saved .ppk private key file, which you generated with Putty Key Generator.

vi. After filling up all the required details, click Open.

Step 8: Logging in to the instance

Now you are successfully connected to your SSH server, as shown in the below image. You just need to enter your instance image name to continue.

ii. Check the box of Use private key and then browse your computer to select the already saved private key pair, which you used during the . If you are facing an issue with the private key creation, check .

You may download Putty from the . Moving forward, in the Alternative binary files section, select and download the appropriate putty.exe file, which is suitable to your Operating system.

PuTTYgen generally comes pre-installed with the PuTTY.exe package, so you need not download separately. If in case of some issue, you may download it from .

instance creation
this
official Putty repository
here
official repository