connect to host localhost port 22: Connection refused

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

    For what its worth I got the following error trying to ssh into my local machine, running Ubuntu 16.04 Xenial, from a vm.

     ssh: connect to host 192.168.144.18 port 22: Connection refused
    

    It got immediately fixed with:

    sudo apt-get install ssh
    

    Take note, Before fix: 'which sshd' returned nothing and 'which ssh' returned

    /usr/bin/ssh
    

    And After the fix: 'which sshd' returned

    /usr/sbin/sshd
    

提交回复
热议问题