Updated ssh_addhost function. Now handles ipaddrs