Hack 12. Identify SSH Client Version

by Ramesh

Sometimes it may be necessary to identify the SSH client that you are currently running and it’s corresponding version number. Use ssh –V to identify the version number. Please note that Linux comes with OpenSSH.The following examples indicates that this particular system is using OpenSSH:

  1. $ ssh -V
  2. OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
  3.  
  4. (or)
  5.  
  6. $ ssh -V
  7. OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

The following example indicates that this particular system is using SSH2:

  1. $ ssh -V
  2. ssh: SSH Secure Shell 3.2.9.1 (non-commercial version) on i686-pc-linux-gnu

Note: It is upper-case V in “ssh -V”