After installing the Raspbian with NOOBS I was able to connect once to my Raspberry Pi model B3+. Now I am unable to connect again on port 22 with the following message:

ssh: connect to host port 22: Connection refused

Anyone knows why?

I am using MAC as a client.

  • Did you enable SSH and if you did: how exactly?
    – Dirk
    Sep 1, 2018 at 23:19
  • I enabled SSH by GUI. I found something: I need to give a static IP address config to Raspbian.
    – Robert-Dan
    Sep 1, 2018 at 23:22
  • Static address is not really necessary. Have you tried using the hostname of the Pi? ssh [email protected] (of course replacing 'raspberrypi' with the name of your Pi)
    – Dirk
    Sep 1, 2018 at 23:27
  • I added a static ip and now it is visible on the network. (sudo ip addr add dev wlan0) Yes it works also with the hostname now. Before was not working. I found the answer here: stackoverflow.com/questions/17789947/raspberry-pi-no-ip-address
    – Robert-Dan
    Sep 1, 2018 at 23:36
  • 1
    @JohniDevo instead of posting your solution in the question can you please post it as a separate answer and mark it as correct.
    – Darth Vader
    Sep 5, 2018 at 19:37

1 Answer 1


The problem was with the house router, i need to allow communication between devices on Wi-fi, now works smoothly fine.

robert-dan@Wolfram-mbp ~> ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=1.898 ms
64 bytes from icmp_seq=1 ttl=64 time=2.585 ms
64 bytes from icmp_seq=2 ttl=64 time=1.894 ms
64 bytes from icmp_seq=3 ttl=64 time=3.381 ms
64 bytes from icmp_seq=4 ttl=64 time=2.719 ms
64 bytes from icmp_seq=5 ttl=64 time=2.166 ms

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.