How to check for SSH version on Ubuntu or Linux server

Linux (Ubuntu) bash terminal in Windows subsystem for Linux (WSL)

You can check the version of SSH (Secure Shell) on an Ubuntu server by running the following command in the terminal:

$ ssh -V

This will display the version of the SSH client installed on your system. If you want to check the version of the SSH server, you can connect to the server using SSH and run the same command.

Alternatively, you can check the version of the OpenSSH package installed on your Ubuntu server by running the following command:

$ dpkg -l | grep openssh-server

This will display the version number of the OpenSSH server package installed on your system.

Test connecting with SSH version 1

$ ssh -1 [server]
SSH protocol v.1 is no longer supported

 

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.