Zend certified PHP/Magento developer

Find ssh credentials from outgoing connection out a unix program

I have a compiled UNIX program (written in C++) that makes a SSH connection to an IP address. I need to extract the hardcoded credentials. I have tried decompiling but with no success. I was wondering if I can somehow intercept the connection and figure out the credentials. Please help.