I have the old Raspberry Pi B. I flashed the latest Raspbian Buster (headless version) using balenaEtcher (macOS). After that, I've connected the SD card again and created a
ssh empty file on the
boot partition (in the same directory where
config.txt files are present).
After inserted the SD card to Raspberry and plugged the power, it started, printed some output, restarted and printed some more output ending in the login prompt.
Along the way, there were a few errors:
[FAILED] Failed to start dphys-swapfile - set up, mount/unmount, and delete a swap file.
[FAILED] Failed to start LSB: Resize the root filesystem to fill partition.
[FAILED] Failed to start Regenerate SSH host keys.
Later on, the log says that Raspberry is using 192.168.2.2 (which I reserved for Raspberry on my router by mac address).
Now, I'm trying to connect to SSH by IP and this happens:
$ ssh 192.168.2.2 -vvv OpenSSH_7.9p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug2: resolve_canonicalize: hostname 192.168.2.2 is address debug2: ssh_connect_direct debug1: Connecting to 192.168.2.2 [192.168.2.2] port 22. debug1: connect to address 192.168.2.2 port 22: Connection refused ssh: connect to host 192.168.2.2 port 22: Connection refused
No luck. But weird thing: when using the
pi.local) hostname, the connection hangs. It never connects but also never replies with a connection refused.
$ ssh raspberrypi.local -vvv OpenSSH_7.9p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug1: Connecting to raspberrypi.local port 22.
I have no keyboard to connect directly to my Raspberry.
ssh file does not get deleted from the SD card. When I read it on my MacBook later, I still see this file. I've read on the Internet that Raspberry should delete it right after enabling SSH.