How to Use SSH on Windows Systems

Introduction

Image result for sshSSH or Secure Shell is  a cryptographic network protocol for operating network services securely over an unsecured network (Wikipedia). If you need to access a server with SSH, you will have to use an SSH client. Linux and Mac OS systems have built-in SSH clients while Windows does not have any built in SSH clients.

In this tutorial, we will show you how to use SSH on Windows.

Use SSH on Windows

Since Windows does not have a built in SSH client, we will have to download and install an SSH client. There are few SSH clients that can be downloaded. Among these are Cygwin, Putty, FireSSH and Secure Shell App. FireSSH is a plugin for Mozilla Firefox. Secure Shell App is an extension for Google Chrome. If you prefer using browser extensions, choose between FireSSH or Secure Shell App. Cygwin is more like making your system be aware of Unix like commands. I do not prefer using Cygwin. I prefer using Putty thus the purpose of this tutorial.

We will be using the most widely used SSH client in Windows, which is Putty. Here are the steps in acquiring Putty to use SSH on Windows:

  1. All you have to do is download the MSI file (Windows Installer) in this link https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html. If you are using a 32-bit operating system, select the 32-bit link. Otherwise, use the 64-bit link.
  2. Afterwards, execute and install the downloaded file.
  3. Locate and run Putty.exe. This can be located in your Start Menu.

You should see a configuration window for Putty like this:

how to Use SSH on Windows

From the configuration window, you can set the host name or IP address of the server and click Open button.

You can read more about Putty from this link: https://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html

That’s it! That’s how you can use SSH on Windows. Let me know if you have any questions.

How to Install WordPress using SSH

Before we begin on how to install WordPress using SSH, let’s have an introduction about WordPress and SSH.

WordPressHow to Install WordPress Using SSH is a free and open-source content management system based on PHP and MySQL. Features include a plugin architecture and a template system. It is most associated with blogging, but supports other types of web content including more traditional mailing lists and forums, media galleries, and online stores.

There are a couple of ways to install WordPress to your server. In this tutorial, I will show you how to install WordPress using SSH.

Image result for sshSSH, also known as Secure Socket Shell, is a network protocol that provides administrators with a secure way to access a remote computer. SSH also refers to the suite of utilities that implement the protocol.

Before you proceed with this tutorial on how to install WordPress using SSH, make sure to setup your database name, username and password.

Here are the steps:

Login to your SSH terminal and navigate to your root directory of your website. In my case, it’s under the public_html folder.

cd public_html

Download the latest WordPress using the following command:

wget http://wordpress.org/latest.tar.gz

Extract the downloaded file using this command:

tar xfz latest.tar.gz

Move the contents of the WordPress files into the root directory of your website using this command:

mv wordpress/* ./

Delete the WordPress directory using this command:

rmdir ./wordpress/

Delete the downloaded file using this command:

rm -f latest.tar.gz

Make sure to navigate to your website and complete the WordPress configuration wizard.

You’re done! That’s how you install WordPress using SSH. You can install your desired plugins and themes.

The steps above can be done in one command:

wget http://wordpress.org/latest.tar.gz && tar xfz latest.tar.gz && mv wordpress/* ./ && rmdir ./wordpress/ && rm -f latest.tar.gz

Don’t forget to navigate to your website and complete the WordPress configuration wizard.

Let me know your thoughts about on “How to Install WordPress Using SSH” by commenting below.