connect to host localhost port 22: Connection refused

前端 未结 28 2797
误落风尘
误落风尘 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:26

    What worked for me is:

    sudo mkdir /var/run/sshd
    sudo apt-get install --reinstall openssh-server
    

    I tried all the above mentioned solutions but somehow this directory /var/run/sshd was still missing for me. I have Ubuntu 16.04.4 LTS. Hope my answer helps if someone has the same issue. ubuntu sshxenial

提交回复
热议问题