connect to host localhost port 22: Connection refused

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

    try sudo vi /etc/ssh/sshd_config

    in first few lies you'll find

    Package generated configuration file

    See the sshd_config(5) manpage for details

    What ports, IPs and protocols we listen for

    Port xxxxx

    change Port xxxxx to "Port 22" and exit vi by saving changes.

    restart ssh sudo service ssh restart

提交回复
热议问题