Fix error when server's ssh port is specified.
Fix host key verification issue when using non-standard port.