4

With reference to the post SSH for Raspberry Pi using a PC, I tried the same steps and got the same error:

Network error, connection refused

In the post I mentioned, I saw an answer mentioning "install ssh on Raspberry Pi".

How do I do it when I haven't been able to set it up? Is there a file which I can copy on to the SD card through my Windows laptop, or is there a software for that also?

4 Answers4

1

Your answer could be here: Connect to Raspberry Pi over ssh: connection refused (from putty)

As in this question is asking to solve the error: Network error, connection refused error form Putty.

Arnar Freyr
  • 111
  • 2
1

Raspbian Lite has SSH Disabled by Default. I have an open source windows tool for setting up wifi and ssh on github, click on "Releases" for a compiled exe.

Raspberry-Pi-Wifi-Setup-Tool

Otherwise: Are you sure your raspberry is on the network? if so you need to create a file called 'ssh' with no extension.

Dr.Rabbit
  • 1,016
  • 6
  • 10
0

If its raspberry pi b+ than it will take 10 sec to boot up. When you are connecting with ssh wait for sometime and than try it.

And its good that the error is this or may be its "connection reset by peer" they all comes when its booting up. some electrical fault did some interrupt and your connection will be lost but after some time or by restarting it you can connect it via ssh

kush rami
  • 11
  • 2
0
  • Your Pi might be actively blocking connections. Flush all iptables entries using the commands:

    iptables -F 
    iptables -t nat -F
    iptables -t mangle -F
    iptables -X 
    
  • Next on the checklist is that Windows firewall or your antivirus might be blocking the connection. Disable it.

  • If it's still dead, try to check your router settings. Maybe someone enabled "Network Isolation" or "Partitioning". It's most probably in the WiFi settings.

  • Last but definitely not least, maybe you forgot to enable the SSH service. You can enable that by running sudo raspi-config, going to Advanced options, going to SSH, highlight Enable, then press enter. Reboot if required.

Aloha
  • 7,176
  • 1
  • 29
  • 52