i am not really sure, if i can help you, i have had a little bit different error.
in my case the mysql-dev libs are missing.
so i think what you have to do is to read the perfect setup debian again. have a look at the openssh - part and check, if this package is installed.
hope, this helps