acmckibben87
Posts: 1
Joined: Fri Jul 17, 2015 2:14 am

I cannot ssh into my Pi

Fri Jul 17, 2015 2:18 am

I cannot ssh into my Pi at all. I used "hostname -I" and it gave me an IP but when I try to connect to it through PuTTy nothing happens and eventually the connection times out. Help!

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: I cannot ssh into my Pi

Fri Jul 17, 2015 6:24 am

What are the IP addresses of your Pi and PC?

They should be similar with the first three numbers the same, possibly something like 192.168.1.21 and 192.168.1.22, but they could be different.

How are they connected together? Wired network or Wireless, directly or through a switch or router.

From the PC can you ping the Pi (start a command line and "ping 192.168.1.22" or whatever the address of the Pi is).

Try to ping the PC from the Pi (start a terminal and "ping -c 3 192.168.1.21" - use the address of the PC)

Joji
Posts: 5
Joined: Thu Jul 16, 2015 9:05 am

Re: I cannot ssh into my Pi

Fri Jul 17, 2015 6:34 am

here is a link which describes how to set up rasberry pi through putty
https://pihw.wordpress.com/guides/direc ... onnection/

User avatar
DougieLawson
Posts: 39302
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: I cannot ssh into my Pi

Fri Jul 17, 2015 9:06 am

Do you have a screen and keyboard attached to your RPi?

[CTRL][ALT][F2] to get a login screen
login as pi (password raspberry which won't display)

Then look at your network with
ifconfig -a
ip route
ping -c3 192.168.1.254 # Or whatever your gateway address is (from the route command)
ping -c3 8.8.8.8
cat /etc/resolv.conf
ping -c3 google.com

If any of those commands fail take a photo of your screen and post it in imgur.com post a link to it on here.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Troubleshooting”