connect to host localhost port 22: Connection refused

前端 未结 28 2266
误落风尘
误落风尘 2021-01-29 19:01

While installing hadoop in my local machine , i got following error

ssh -vvv localhost 
OpenSSH_5.5p1, OpenSSL 1.0.0e-fips 6 Sep 2011 
debug1: Reading configura         


        
28条回答
  •  感情败类
    2021-01-29 19:33

    Make sure that /etc/hosts.allow contains:

    ssh:ALL:allow
    sshd:ALL:allow
    

    OR

    ssh:localhost:allow
    sshd:localhost:allow
    

    OR - some other variant

    ssh:{host1,host2,host3...}:allow
    sshd{host1,host2,host3...}:allow
    

    INSURE that the first line in the file DOES NOT begin with ALL:ALL:DENY

    NOTHING will be able to communicate with the host... on any port.

提交回复
热议问题