2

I have tried to create a headless connection to my (new) Raspberry Pi, since I do not have a HDMI cable at home. However- after trying everthing I have found as suggestions on Google etc.- I just cannot find a solution to my problem.

My Raspberry is on my local network and ssh is activated, which I can see from:

nmap 192.168.x.x
Nmap scan report for 192.168.x.x
Host is up (0.00018s latency).
Not shown: 999 closed ports
PORT   STATE SERVICE
22/tcp open  ssh

when I type ssh pi@192.168.x.x, and then type raspberry as password, it says: Permission denied, please try again.

When I type: sudo service ssh status, I get:

Dez 27 21:19:24 fritz-HP-Pavilion-17-Notebook-PC sshd[16244]: Failed password for invalid user pi from 192.168.x.x port 45468 ssh2

Dez 27 21:19:42 fitz-HP-Pavilion-17-Notebook-PC sshd[16244]: Connection closed by 192.168.x.x port 45468 [preauth]

PS.: I use Ubuntu 16.04. and on the Raspberry Pi 3, the operating system is Raspbian

Mike Poole
  • 220
  • 1
  • 2
  • 7
BeldCode
  • 21
  • 2

2 Answers2

1

Since it seems that you are using Ubuntu on your host PC, you can inspect the etc/passwd file on the SD card to find out what your username is on the Pi.

cat /media/ubuntu_user/sd_card_partition_2/etc/passwd

You can also check if the default password is what is expected or change the default password by modifying the etc/shadow file on the SD card. The instructions for adding a new user included in the link @Ghanima posted in his comment should work as well.

Update

From your comment, it seems you are trying to install Noobs without a display, perhaps these instructions will work for you. They are a little on the old side, but perhaps they will still work.

My advice would be to download the official Raspbian image which is a lot easier to work with on initial install without a keyboard and monitor.

RubberStamp
  • 1,449
  • 1
  • 12
  • 16
0

Per updated question: This is the likely solution SSH not working with fresh install


Assuming Ubuntu LTS 16.04 running on the Pi:

The default login username is "ubuntu", password is "ubuntu" for Ubuntu LTS 16.04 (Source).

This is the clue that there is no user pi:

Failed password for invalid user pi from 192.168.x.x

So this is your command to go with:

ssh ubuntu@192.168.x.x
Ghanima
  • 15,958
  • 17
  • 65
  • 125