I found a link that might be a better route to build ssh.
http://www.stepwise.com/Articles/Workbench/OpenSSH-2.5-MacOSX.html
They use a (probably patched) open ssl 0.9.5a from http://www.publicsource.apple.com. Couldn't reach that URL right now though...
Just finished building ssh2. Main problem is that os x comes with open ssl 0.9.5a libraries but no headers.
1) Download latest zlib from
http://www.freesoftware.com/pub/infozip/zlib/
unpack it...
cd into the dir
run these three
./configure --prefix=/usr/local/zlib-1.1.3
make
sudo...
Remember how you could get the terminal window to immediatelly disappear when the shell process exited in PB?
The setting is still there...
Point your favourite text editor to
~/Library/Preferences/com.apple.Terminal.plist
Find the rows:
<key>ShellExitAction</key>
<integer>2</integer>...