I would prefer to do this through the command line rather than downloading Macports. Any help appreciated.
Check out the OpenSSH Portable version
Download load the version you want.
The portable OpenSSH follows development of the official version, but releases are not synchronized. Portable releases are marked with a 'p' (e.g. 4.0p1). The official OpenBSD source will never use the 'p' suffix, but will instead increment the version number when they hit 'stable spots' in their development.
Read the Installation instructions carefully, before installing.
As noted there:
The OpenSSH provided here is designed to run on the following Unix operating systems:
Mac OS X
... and more are being added all the time.