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.




1862 posts

Uber Geek
+1 received by user: 548


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

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?

 

 


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

neb

1048 posts

Uber Geek
+1 received by user: 233

Lifetime subscriber

  # 2236834 14-May-2019 19:25
One person supports this post
Send private message quote this post

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.

22260 posts

Uber Geek
+1 received by user: 4784

Trusted
Subscriber

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

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

 
 
 
 




1862 posts

Uber Geek
+1 received by user: 548


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

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.


neb

1048 posts

Uber Geek
+1 received by user: 233

Lifetime subscriber

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

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

1048 posts

Uber Geek
+1 received by user: 233

Lifetime subscriber

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

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.

27 posts

Geek


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

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

 

 




1862 posts

Uber Geek
+1 received by user: 548


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

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


 
 
 
 


3205 posts

Uber Geek
+1 received by user: 421


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

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


14887 posts

Uber Geek
+1 received by user: 2794

Trusted
Subscriber

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

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.




1862 posts

Uber Geek
+1 received by user: 548


  # 2236937 14-May-2019 20:16
One person supports this post
Send private message quote this post

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.


3205 posts

Uber Geek
+1 received by user: 421


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

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


1680 posts

Uber Geek
+1 received by user: 178

Trusted

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

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





CPU: Intel 3770k| RAM: F3-2400C10D-16GTX G.Skill Trident X |MB:  Gigabyte Z77X-UD5H-WB | GFX: GV-N660OC-2GD gv-n660oc-2gd GeForce GTX 660 | Monitor: Qnix 27" 2560x1440

 

 


66 posts

Master Geek
+1 received by user: 7


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

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



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Dunedin selects Telensa to deliver smart street lighting for 15,000 LEDs
Posted 18-Jul-2019 10:21


Sprint announces a connected wallet card with built-in IoT support
Posted 18-Jul-2019 08:36


Educational tool developed at Otago makes international launch
Posted 17-Jul-2019 21:57


Symantec introduces cloud access security solution
Posted 17-Jul-2019 21:48


New Zealand government unveils new digital service to make business easier
Posted 16-Jul-2019 17:35


Scientists unveil image of quantum entanglement
Posted 13-Jul-2019 06:00


Hackers to be challenged at University of Waikato
Posted 12-Jul-2019 21:34


OPPO Reno Z now available in New Zealand
Posted 12-Jul-2019 21:28


Sony introduces WF-1000XM3 wireless headphones with noise cancellation
Posted 8-Jul-2019 16:56


Xero announces new smarter tools, push into the North American market
Posted 19-Jun-2019 17:20


New report by Unisys shows New Zealanders want action by social platform companies and police to monitor social media sites
Posted 19-Jun-2019 17:09


ASB adds Google Pay option to contactless payments
Posted 19-Jun-2019 17:05


New Zealand PC Market declines on the back of high channel inventory, IDC reports
Posted 18-Jun-2019 17:35


Air New Zealand uses drones to inspect aircraft
Posted 17-Jun-2019 15:39


TCL Electronics launches its first-ever 8K TV
Posted 17-Jun-2019 15:18



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.