First, install Avahi on your Raspberry Pi

sudo apt-get install avahi-daemon

Now you can access your Raspberry Pi via its hostname raspberrypi.local instead of its IP address. You can also change the hostname (see reference).

ssh pi@raspberrypi.local

Reference