I have searched for old topics but I can't find anything that could solve my issue.

I have installed Ubuntu MATE on SD card and created the ssh file on the boot\ directory. I connect the RPi2 directly to the modem via the LAN cable. However, when I use Putty to SSH to my RPi2, it says Network error: Connection refused, but I can ping the RPi2.

Please note that I don't have a monitor to connect with my RPi2 so I can't access raspi-config and do anything as long as I can't SSH.

How to solve this problem? Or maybe I installed it wrongly, any working guide would be really appreciated.

  • I have installed Ubuntu MATE on SD card and created the SSH file Does MATE actually support headless activation? Has the file been removed after you booted the Pi with it? If not then SSH was not activated.
    – Dirk
    Commented Oct 11, 2018 at 15:34
  • The file 'ssh' should be an empty or text file in the /boot partition of the sdcard (the fat32 partition) note that the name is case sensitive and should be only 'ssh' not 'ssh.txt' - make sure when creating the file in windows that you have the view set to display file extensions! If that is ok then after booting the Pi once and shutting down check the sdcard and see if the 'ssh' file is still present. If the enabling mechanism is working the file should be deleted automatically.
    – Charemer
    Commented Oct 11, 2018 at 16:01
  • We are all speculating. Does anybody know if/how Ubuntu MATE supports headless SSH connection and use what default username and password? That's the question and best solved by looking at the documentation of the Ubuntu image.
    – Ingo
    Commented Oct 12, 2018 at 15:05
  • Based on the reading of the Ubuntu MATE description, SSH as a service is not even present on the default image that you install. It's not a matter of whether SSH activation is available, but that SSH itself doesn't come installed by default.
    – WineSoaked
    Commented Jul 6, 2019 at 6:15

1 Answer 1


My recommendation is to set your Pi up using a monitor and keyboard. I have a Rpi3B running headless off a laptop and use VNC to communicate with the Rpi3B. enter image description here

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.