2

I'm trying to use SSH for the Raspberry Pi so I can control it from my PC.

I followed the youtube video Raspberry Pi - How to SSH - Remote view your Pi... but the result was "connection refused".

My Raspberry Pi is using a Wi-Fi dongle connected to the router which has a ping of inet addr: 192.168.1.2, Bcast:192.168.1.255. I'm using X11 as a forwarder, which was used in the link.

So what is the mistake have I made? Do I need to download something for my PC, to use SSH, or is PuTTy enough?

Greenonline
  • 2,969
  • 5
  • 27
  • 38
Jane Alvord
  • 61
  • 2
  • 3
  • 4

2 Answers2

2

Putty is more than enough to SSH in. Firstly make sure you have installed an SSH server on your raspberry PI such as OpenSSH. Next make sure you can ping your raspberry PI's IP address using a ping command, in your case ping 192.168.1.2. Press ctrl+c at anytime to stop pinging. If you are unable to ping your raspberry PI, then you know there is a problem with your raspberry PI even connecting to your local network.

If it is a success, connect to your PI via Putty. To connect to it via Putty, open putty, enter the IP of your raspberry PI under Host Name (or IP address) and 22 for the port. You should then be connected to the raspberry PI's terminal and be able to login.

If you get a connection refused (I believe this is where your at) the raspberry PI is not accepting connections on port 22. This is most likely due to an incorrectly setup SSH server. You should look into another tutorial for your specific distribution. Distributions are like flavors of Linux, you're most likely using one of these http://www.raspberrypi.org/downloads. Most likely Raspbian. A good tutorial for Rasbian is https://www.modmypi.com/blog/remotely-accessing-the-raspberry-pi-via-ssh-console-mode.

Fallen
  • 121
  • 1
-2

if the ping fails, check your router settings => host isolation / or Wifi/ethernet isolation must be disabled.

twooBeers
  • 123
  • 3