dantrain27
Posts: 1
Joined: Mon Sep 01, 2014 4:52 am

SSH simply won't work. (Debian Wheezy)

Mon Sep 01, 2014 4:59 am

Hello, I'm trying to connect to my pi using an ethernet cable to my laptop directly into the pi. I use Cygwin to enter the command ssh pi@192.168.2.2 and I either get "Connection timed out" or "connection refused" and I don't understand why. I downloaded Open DHCP Server and have that running in the background and everything. And I have confirmed that the pi does boot by using an HDMI cable and seeing for myself that it does. So what is the issue here?

I know there are a lot of posts on this, but I can't find anything that works for me.


User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: SSH simply won't work. (Debian Wheezy)

Mon Sep 01, 2014 10:48 am

Make life easy and connect the Pi to your router, then you've only one network to worry about. Doing it the away your doing it, one way or another you have to get a compatible IP address to the ethernet connector on the laptop. The established method is to set up internet sharing on the laptop, but connecting the Pi to the router is easier.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: SSH simply won't work. (Debian Wheezy)

Mon Sep 01, 2014 1:06 pm

You could try IPv6.
Add ipv6 to /etc/modules and reboot.
When the pi comes back up run ip -6 addr show dev eth0 and you should find an address stating with fe80::.
You should now be able to log on to the device:
ssh pi@fe80::20e:c6ff:fe12:3456%wlan0
(the %wlan0 bit is needed to specify which network address on the PC to use, IIRC it's not needed on Windows).
The upshot? This IPv6 address is based on the MAC address of the Pi. It will never change, no need for DHCP.

ertresvag
Posts: 39
Joined: Sun Oct 27, 2013 1:04 pm

Re: SSH simply won't work. (Debian Wheezy)

Mon Sep 01, 2014 3:01 pm

First try to ping the Pi, if it answers you are on the same net, then it should be OK.
If you're using a Windows PC the download Putty. Putty is simple to use.

If your PI don't answer the pings, then check the IP-addresses on the PI and on your computer. They must be on the same net.

Return to “Troubleshooting”