I'm trying to set up my new-to-me Raspberry Pi (Raspbian Jessie( in a headless manner. I've got the Pi connected to my Mac by an ethernet cable. I am able to login via ssh, but it seems that its IP chances every time I disconnect and reconnect the Pi. I can rediscover the IP using arp -a | grep "b8:27:eb
, then use that IP address to ssh in to the Pi.
This is not a viable long term solution for me and I'd have thought that a changing IP would be avoided by connecting the Pi directly to my laptop. In any case it appears that most people have their systems set up so that their Pi is always found on a single IP. I've not found the various 'Static IP' tutorials useful in solving this issue as I am not currently trying to access the Pi through the internet, nor am I connecting to it through my router.
In my System Preferences > Network (MacOS 10.10), I have tried using DHCP and DHCP with manual address. Neither provides an unchanging IP address through which I can login to my Pi, however.
I greatly appreciate any assistance in setting things up so I don't have to keep re-discovering my Pi's IP.
Many thanks, -R
dhcpcd
letssh
work over a link-local address. – Milliways Nov 24 '15 at 22:26ssh pi@raspberry.local
worked perfectly. Since Internet Connection Sharing doesn't work with a direct ethernet connection, is there another way to connect my Pi to the internet through my laptop? – ramesesjd Nov 25 '15 at 05:16