Ubuntu Manpages

ssh-version

shows version of the SSH server you are connecting to

Usage: ssh-version [OPTIONS] hostname
Examples:
ssh-version 127.0.0.1
ssh-version -p 35007 127.0.0.1