Can anybody give me the original ssh.plist file for OS X?
You can also find it at Apple's opensource.apple.com at launchd-ssh.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Notice Apple uses
/usr/libexec/sshd-keygen-wrapper as the program. If I recall correctly, that generates host keys if needed and then starts the actual daemon.
what ssh plist file? where is it located?
The plist file is located at
You can stop the server with:
sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
You can start the server with:
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
Apple also uses ancient versions of programs and libraries, so there's value in upgrading. For example, both OpenSSL and OpenSSH have both been updated due to security bugs.
You have a couple of options if you want to upgrade. First, you can build and install OpenSSH yourself by following Building OpenSSH for OS X? on Super User. Second, you can use a package tool like Brew, Fink or Macports to install it.
If you use the package manager, then you will probably want to disable Apple's OpenSSH, add a new launch daemon to start the port's gear, and use the port's configuration files.