Okay guys,
I have managed to solve the problem. In the end it turned out that DSA is only suported in SSH2. As I wasnt explicitly declaring to use SSH2 it was throwing this error. Now I expressly define which protocol to use and it works.
Thanks for all your help.