Http://bbs.pinggu.org/thread-3164833-1-1.html
1, Ssh:connect to host localhost Port 22:connection refused
This problem usually occurs because the SSH service is installed or started,
Ubuntu under Install ssh:sudo apt-get install Openssh-server
Fedora installation Ssh:yum Install Openssh-server
-See if the installation
[Email protected] java]$ Rpm-qa | grep "SSH"
Libssh2-1.4.3-10.fc20.x86_64
Openssh-clients-6.4p1-6.fc20.x86_64
Openssh-server-6.4p1-6.fc20.x86_64
Openssh-6.4p1-6.fc20.x86_64
-Check whether the service is started
[Email protected] java]$ PS-E | grep "SSH"
23419? 00:00:00 sshd
Systemctl Enable Sshd.service
2. Change the host name
For the Fedora13 version,
# HOSTNAME sub-segments in Vi/etc/sysconfig/network file
For the FEDORA20 version,
# Vi/ect/hostname
3. Change hosts to resolve host names
# vi/etc/hosts
4. Turn off the firewall
Service Iptables Stop
Hadoop 2.5.2 Environment Configuration