1

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:

  1. Connecting from mobile phone (Termux) over SSH via wifi.
  2. Connecting from laptop with Ethernet cable to Ethernet port of Rpi.
  3. 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.

11
  • It may be best if you ask one question and give full details rather than three questions with insufficient information. Could you edit your question and cut & paste the dialogue for approach 2?
    – joan
    Commented Dec 1, 2017 at 12:53
  • No, I want to be able to connect to the Rpi over SSH and this is information about what I have tried already. There is only one question and then information about what has not worked. The question is therefore properly formatted already and posted in accordance with guidelines.
    – Vesa
    Commented Dec 1, 2017 at 12:57
  • This might sound stupid but have you tried to connect the RPI to the ethernet, also i remember from the pi 2B i sometimes had to reinstall open-ssh server, might be my mistake but try it!
    – patrick
    Commented Dec 1, 2017 at 13:26
  • Hello @patrick. I have tried to put an ethernet cable between the laptop and the rpi. I don't have a router at the moment. You have to understand that there is no reinstallation of anything if I cannot access the device through SSH in the first place.
    – Vesa
    Commented Dec 1, 2017 at 13:37
  • 1
    When I read the post it was unclear how you got the IP address. But if you did ssh [email protected] then it seems Bonjour/zeroconf is working. /home/xx/.ssh: ahh, just realized okay if local user is xx, target user pi.. When you said you got Permission 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?
    – jdonald
    Commented Dec 1, 2017 at 17:08

1 Answer 1

1

On newer versions of Raspbian, the SSH service is turned OFF by default for security purposes. This is a good thing, but it causes you to have to go through one extra step before booting it up:

  • After you create the fresh Raspbian image on the SD card, go into the root of that card.
  • Create a new file called ssh in that folder. It doesn't matter if it has any data in it, the existence of the file is what counts here.
  • If you need to, update the /etc/wpa_supplicant/wpa_supplicant.conf with your Wifi SSID and network password (which you say you've already done, so this is good).
  • Stick the card into the Pi and boot it. You should see it show up in the DHCP logs of your router or DHCP server. From that info you will know the IP address it has been assigned.

For a detailed and well written full tutorial, check THIS WEB PAGE.

Good luck!

1
  • I have already put a file called ssh in boot.
    – Vesa
    Commented Dec 2, 2017 at 7:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.