I see a similar problem. My MBP doesn't know that its name is specified via TCP/IP, DNS, etc.
I don't have a problem with SSH, but I do have a problem using the Apache java mail library to send mail. My mail sender requires that client machines know there own name, and
report it in the HELO message to SMTP.
For SSH, you probably want to make sure you have a config file in your .ssh directory and have it contain lines such as: