How to Check if SSH Client is Installed on Ubuntu

This article explains how to quickly verify if the Secure Shell (SSH) client is already installed on your Ubuntu Linux system. You will learn the simplest terminal commands to check for the SSH client’s presence and how to interpret the command outputs.

Method 1: Check the SSH Version

The quickest way to check if the SSH client is installed is by querying its version. Open your terminal (Ctrl+Alt+T) and run the following command:

ssh -V

Method 2: Use the which Command

You can locate the binary executable of the SSH client using the which command. Run:

which ssh

Method 3: Check via the Package Manager

Ubuntu uses the Debian package manager (dpkg) to manage software. You can search your system’s installed packages specifically for the OpenSSH client by running:

dpkg -l | grep openssh-client

What to do if the SSH Client is missing?

If the tests above show that the SSH client is not installed, you can easily install it from the official Ubuntu repositories using the following commands:

sudo apt update
sudo apt install openssh-client