Trevor,thanks for pushing on. You have a happy customer.
Not only did I get ssh working between a standalone windows pc and my RPi,
I think I understand how.
From your answer(1), I decided to push on and try to establish lan connection between
my PC and my RPi.
As your previous answer suggested this had to use a static IP address on the RPi.
I will detail my setup incase this thread is of help to someone else.
Not to mention me if I need to do this again later:
On the PC I set the lan ipv4 address:
Ipaddress 169.254.117.89
Subnetmask 255.255.0.0
Defaultgateway 169.254.117.89
169.254.*.* is the link local address. Cant use this if you want to also
connect to the internet. If you have an internet connection to share and
that connection gave you an ip like 192.168.0.* you may be able to use that.
On the RPi I set the file /etc/network/interfaces to:
auto lo
iface lo inet loopback
iface eth0 inet static
address 169.254.118.2
netmask 255.255.0.0
gateway 169.254.117.89
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Now I reboot the RPi and connect the lan cable.
Windows pc-------------------lan cable----------------RPi
169.254.117.89 ~~~~~~~~~~~~~~~~~~~~169.254.118.2
In windows the firewall comes up for a new connection.Set "home"
a trusted connection.
Widows will set this lan connection as "home" without any passwords.
There should now be a lan ipv4 connection.
From a command line in windows we can ping the RPi:
C:\Users\carl>ping -n 5 169.254.118.2
Pinging 169.254.118.2 with 32 bytes of data:
Reply from 169.254.118.2: bytes=32 time=30ms TTL=64
Reply from 169.254.118.2: bytes=32 time<1ms TTL=64
Reply from 169.254.118.2: bytes=32 time<1ms TTL=64
Reply from 169.254.118.2: bytes=32 time<1ms TTL=64
Reply from 169.254.118.2: bytes=32 time<1ms TTL=64
Ping statistics for 169.254.118.2:
Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 30ms, Average = 6ms
From the RPi we can ping the pc:
pi@raspberrypi ~ $ ping -c 5 169.254.117.89
PING 169.254.117.89 (169.254.117.89) 56(84) bytes of data.
64 bytes from 169.254.117.89: icmp_req=1 ttl=128 time=1.75 ms
64 bytes from 169.254.117.89: icmp_req=2 ttl=128 time=0.628 ms
64 bytes from 169.254.117.89: icmp_req=3 ttl=128 time=0.660 ms
64 bytes from 169.254.117.89: icmp_req=4 ttl=128 time=0.623 ms
64 bytes from 169.254.117.89: icmp_req=5 ttl=128 time=0.643 ms
--- 169.254.117.89 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.623/0.861/1.752/0.445 ms
From the RPi we can now see the ip address to use in putty on the pc:
pi@raspberrypi ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:be:8c:ad
inet addr:169.254.118.2 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7734 (7.5 KiB) TX bytes:1588 (1.5 KiB)
In my handbook we should be able to see full information about sshd:
pi@raspberrypi ~ $ sudo service sshd status
sshd: unrecognized service]
Same as before, but sshd does work.
On the pc run putty and select 169.254.118.2
This gets us into ssh:
login as: pi
pi@169.254.118.2's password: (I set password to rasberry)
Linux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
pi@raspberrypi ~ $
Thanks for the advice
Cheers from carl