Most of the instructions on this side assume a MacBook terminal window is being used. Using the terminal window, login to the Raspberry Pi using ssh.
For a Windows PC, follow these directions to open a terminal window
For a MacBook, open a terminal window from a Finder window >> Applications >> Utilities >> terminal. I keep terminal in my dock.
avahi-daemon comes installed on raspbian by default. avahi-daemon allows you login to your Raspberry Pi by hostname. I think this is easier then remembering or looking up the host's ip address.
Text enclosed within ♣s should be replaced with your value. See My Standards
Step 1. If the hostname has not been set
Open your ISP's gateway, and find your new Raspberry Pi's address, or use Angry IP Scanner and find your Raspberry Pi's IP Address.
Open a terminal window and login using one of the following:
$ ssh pi@♣ip-address♣
$ ssh pi@raspberrypi
$ ssh pi@raspberrypi.local
If ssh times out on first login, run the command again. If prompted for permission, type: yes
$ ssh pi@♣ip-address♣
ssh: connect to host raspberrypi port 22: Operation timed out
$ ssh pi@♣ip-address♣
The authenticity of host 'raspberrypi (♣ip-address♣)' can't be established.
ECDSA key fingerprint is SHA256:♣key♣
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Step 2. Once the hostname has been set
Open a terminal window and login in to the Raspberry Pi using one of the commands:
$ ssh pi@♣hostname♣
$ ssh pi@♣hostname♣.local
default user = pi
default password = raspberry
password: ♣your-raspberry-pi-password♣
Troubleshooting:
Replace variables enclosed ♣s with your value
If ssh does not work:
If the ssh command above does not work, try:
$ ssh pi@♣hostname♣.local
If ssh gives Known Hosts message:
If you get something like:
Offending key for IP in /Users/♣macbook♣/.ssh/known_hosts:♣#♣
On the Mac, run the command
$ sudo nano /Users/♣macbook♣/.ssh/known_hosts
and type CTRL-_ (ignore the dash. underscore = CTRL, shift and minus) and enter ♣#♣
this will move the editor to the line to delete. Type CTRL-k to delete the line
CTRL-o to write the file
CTRL-x to exit the editor