Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


MadEngineer

4271 posts

Uber Geek

Trusted

#249515 14-May-2019 19:03
Send private message

Hi, all the headless guides say to create a file simply name ssh along with a wpa_supplicant.conf file that contains your wireless details.

 

I've done the above and the RBP connects to my wireless and gets an IP, is pingable but SSH connection attempts fail with connection refused.

 

 

 

When googling this issue the answer is to place the ssh file into a 'boot' partition, however the setup of the SD card states to simply format it with the official tool then copy over the files.  There's no other special partition.  Also this contradicts the instructions of placing the ssh file and the wpa_supplicant.conf file into the same place - the latter clearly working as it's connecting to my wifi.

 

What have I done wrong?

 

 





You're not on Atlantis anymore, Duncan Idaho.

Filter this topic showing only the reply marked as answer Create new topic

neb

neb
11294 posts

Uber Geek

Trusted
Lifetime subscriber

  #2236834 14-May-2019 19:25
Send private message

You need to create an empty file called "ssh" in the root of the SD card, this turns on SSH and deletes itself on first boot. Since that's on a DOS partition, you can do it from anything and don't need to be able to mount an ext3 or whatever filesystem.

 

 

As for WiFi on a Pi... ugh, you're going to have neverending hassles with that, and every time it goes offline you'll have to go out to wherever it is and unplug and rewire and reset and re-plug everything. I use a WiFi bridge for my IoT stuff, so they all talk ethernet and the bridge handles the WiFi stuff.



richms
28168 posts

Uber Geek

Trusted
Lifetime subscriber

  #2236836 14-May-2019 19:35
Send private message

Ive found the 2 new ones with good wifi are faultless on wifi. That previous 2.4GHz only chipset was a dog with disconnections and terrible performance. I kept using a USB stick on those pi's.

 

First time I had issues getting SSH to work and ended up having to plug a screen in and use raspi-config. I think the making a ssh file is a cruel joke because I booted, waited ages and powered off and put it back in the computer and the file was still there. Gave it at least 5 mins.

 

 





Richard rich.ms

MadEngineer

4271 posts

Uber Geek

Trusted

  #2236841 14-May-2019 19:45
Send private message

neb: You need to create an empty file called "ssh" in the root of the SD card, this turns on SSH and deletes itself on first boot. Since that's on a DOS partition, you can do it from anything and don't need to be able to mount an ext3 or whatever filesystem. .
that's ... exactly what I did. No go.





You're not on Atlantis anymore, Duncan Idaho.



neb

neb
11294 posts

Uber Geek

Trusted
Lifetime subscriber

  #2236842 14-May-2019 19:46
Send private message

richms:

Ive found the 2 new ones with good wifi are faultless on wifi. That previous 2.4GHz only chipset was a dog with disconnections and terrible performance. I kept using a USB stick on those pi's.

 

 

Ah, yeah, the new ones are better now. Or at least they couldn't be any worse, the old ones were dire and even worse were the very old ones where you needed custom kernel-version-specific drivers so each time the kernel got updated the WiFi would disable itself until you plugged it into a wired connection and updated the drivers. After that I just didn't trust Pi WiFi any more and went with wired, and haven't had any problems since then, apart from the usual issues where the Pi s**ts itself and needs to be rebooted or reflashed. Speaking of which, need to go out and reboot one of them now...

neb

neb
11294 posts

Uber Geek

Trusted
Lifetime subscriber

  #2236844 14-May-2019 19:48
Send private message

MadEngineer:

neb: You need to create an empty file called "ssh" in the root of the SD card, this turns on SSH and deletes itself on first boot.
that's ... exactly what I did. No go.

 

 

Hmm, odd. Maybe they've done something even more "clever" in recent versions, the "touch /ssh" thing has always worked for me but I haven't had to do that for six months or so.

1yippy1
67 posts

Master Geek


  #2236845 14-May-2019 19:48
Send private message

Are you using username "pi" and password "raspberry" ?

 

 


MadEngineer

4271 posts

Uber Geek

Trusted

  #2236930 14-May-2019 20:09
Send private message

Yes (tried ssh pi@device ) but connection refused means it's not even listening for ssh





You're not on Atlantis anymore, Duncan Idaho.

 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
Oblivian
7296 posts

Uber Geek

ID Verified

  #2236934 14-May-2019 20:13
Send private message

Does the SSH file go buhbye on reboot as if it's tried to enable? (smaller partition = boot)

 

(it has to have no extension, which windows may be applying one and hidden?)

 

Take it no monitor out to at least do a 

 

sudo systemctl enable ssh

 

sudo systemctl start ssh


timmmay
20574 posts

Uber Geek

Trusted
Lifetime subscriber

  #2236936 14-May-2019 20:15
Send private message

ssh isn't enabled by default on raspberrian. You have to run the configure command (sudo raspi-config) and enable it. Unless what you've said above does the same thing, but this way works.


MadEngineer

4271 posts

Uber Geek

Trusted

  #2236937 14-May-2019 20:16
Send private message

Answer:  Noobs doesn't support the ssh file.  You need to use an image writer tool to apply the image file which provides a boot partition.  In that partition you place said files.





You're not on Atlantis anymore, Duncan Idaho.

Oblivian
7296 posts

Uber Geek

ID Verified

  #2236942 14-May-2019 20:30
Send private message

Guess we all assumed you had the latest image vs a factory SD card :P


mentalinc
3225 posts

Uber Geek

Trusted

  #2236964 14-May-2019 21:06
Send private message

and for others, NOOBs is just to download and flash something like raspbian (which we all assumed was already being used).





CPU: AMD 5900x | RAM: GSKILL Trident Z Neo RGB F4-3600C16D-32GTZNC-32-GB | MB:  Asus X570-E | GFX: EVGA FTW3 Ultra RTX 3080Ti| Monitor: LG 27GL850-B 2560x1440

 

Quic: https://account.quic.nz/refer/473833 R473833EQKIBX 


outdoorsnz
674 posts

Ultimate Geek


  #2238238 15-May-2019 10:44
Send private message

Maybe slightly off-topic, but have you tried PINNS? It has headless options - VNC and SSH.

 

https://github.com/procount/pinn/blob/master/README_PINN.md

 

 

 

But apparently headless SSH works. Sure no file extensions? I keen to know, as this is something I want too. Pain to hook in a screen to just run pi-config.

 

https://hackernoon.com/raspberry-pi-headless-install-462ccabd75d0


Filter this topic showing only the reply marked as answer Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.