Open up a Terminal (located in /Applications/Utilities on the Mac).
Type in the following command, but replace [IP address] with the particular IP address of your Pi that we found out previously:
ssh pi@[IP address]
If your network provides a convenient local DNS service, you might be able to type raspberrypi instead of the IP address, try it and see if it works.
The first time you connect to the Pi or any foreign system over SSH, you'll be prompted with a warning and a chance to verify the remote system's RSA key fingerprint before continuing. This is a security feature designed to ensure the authenticity of the remote system. Since we know that our Pi is indeed our Pi, answer yes to continue the connection.
Type the password of the user pi that you chose earlier with Raspi-config.
You're now logged in as the user pi. When you've had enough pranking for the day, type exit to quit your SSH session