I have just bought a Raspberry Pi 3B+ and want to setup by connecting it to my Macbook Pro via Ethernet connection.
I can ping the raspberry pi IP address
$ ping raspberrypi.local PING raspberrypi.local (192.168.2.2): 56 data bytes 64 bytes from 192.168.2.2: icmp_seq=0 ttl=64 time=0.482 ms 64 bytes from 192.168.2.2: icmp_seq=1 ttl=64 time=0.642 ms 64 bytes from 192.168.2.2: icmp_seq=2 ttl=64 time=0.484 ms
But I fail to ssh to the raspberry pi
$ ssh email@example.com ssh: connect to host raspberrypi.local port 22: Connection refused
There seems to be a problem on my network connection but I am not sure if it is related to the above issue. USB 10/100/1000 LAN has a self-assigned IP address and will not be able to connect to the Internet. (I have Internet sharing enabled)
EDIT: I have NOOBS installed.