1 You may should edit your /etc/hosts. For example if my hostname is ub0, but the hostname in /etc/hosts is localhost, it may occur connect to host ub0 port 22: Connection refused Because the hostname in /etc/hosts is localhost not ub0. So, you should be careful the hostname when building up distributed clusters.

