I have a new Raspberry Pi 3 B 1.2 and I am trying to SSH into it. I don't have a monitor or an HDMI cable. I have already etched the img file with Raspberry Stretch onto a 64 GB SD card using Etcher.io and I have also already put a file called ssh in boot.
I have tried three approaches:
- Connecting from mobile phone (Termux) over SSH via wifi.
- Connecting from laptop with Ethernet cable to Ethernet port of Rpi.
- Making a USB tethering connection from the mobile phone and connecting over USB
Each connection fails. Please advise me how I can resolve the issue and finally connect over SSH to the Rpi
Approach 1. Connecting from mobile phone (Termux) over SSH via wifi.
Probably fails because this is a shared router which I cannot access physically. The pi does not show up in the network scan, even after I add a wpa_supplicant.conf file.
Approach 2. Connecting from laptop with Ethernet cable to Ethernet port of Rpi
Fails for unknown reason. When I use SSH in terminal I get as far as to password prompt but the standard password (raspberry) is not working with a permission denied error. Yes, I have already put a file called ssh in the boot directory.
Approach 3. Making a USB tethering connection from the mobile phone and connecting over USB.
When I try to connect with SSH from Termux on the phone I get a connection timed out or network is unreachable error.
Please advise.
Update: On the computer I cannot find the IP address of the Rpi. On the phone I get a connection timeout when I try to make an SSH connection after USB tethering.
ssh [email protected]
then it seems Bonjour/zeroconf is working. /home/xx/.ssh: ahh, just realized okay if local user isxx
, target userpi
.. When you said you gotPermission Denied
, it seemed you might have been compromised by a Pi ssh-targeting botnet, see/var/log/auth.log
on the SDcard to check. When tethering via your phone hopefully it wasn't in DMZ mode?