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.




1914 posts

Uber Geek


# 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?

 

 


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

neb

1252 posts

Uber Geek

Trusted
Lifetime subscriber

  # 2236834 14-May-2019 19:25
One person supports this post
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.

22625 posts

Uber Geek

Trusted
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

 
 
 
 




1914 posts

Uber Geek


  # 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.


neb

1252 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

1252 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.

31 posts

Geek


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

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

 

 




1914 posts

Uber Geek


  # 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


 
 
 
 


3410 posts

Uber Geek


  # 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


15351 posts

Uber Geek

Trusted
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.




1914 posts

Uber Geek


  # 2236937 14-May-2019 20:16
One person supports this post
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.


3410 posts

Uber Geek


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

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


1763 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: 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

 

 


94 posts

Master 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



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 »

Chorus to launch Hyperfibre service
Posted 18-Nov-2019 15:00


Microsoft launches first Experience Center worldwide for Asia Pacific in Singapore
Posted 13-Nov-2019 13:08


Disney+ comes to LG Smart TVs
Posted 13-Nov-2019 12:55


Spark launches new wireless broadband "Unplan Metro"
Posted 11-Nov-2019 08:19


Malwarebytes overhauls flagship product with new UI, faster engine and lighter footprint
Posted 6-Nov-2019 11:48


CarbonClick launches into Digital Marketplaces
Posted 6-Nov-2019 11:42


Kordia offers Microsoft Azure Peering Service
Posted 6-Nov-2019 11:41


Spark 5G live on Auckland Harbour for Emirates Team New Zealand
Posted 4-Nov-2019 17:30


BNZ and Vodafone partner to boost NZ Tech for SME
Posted 31-Oct-2019 17:14


Nokia 7.2 available in New Zealand
Posted 31-Oct-2019 16:24


2talk launches Microsoft Teams Direct Routing product
Posted 29-Oct-2019 10:35


New Breast Cancer Foundation app puts power in Kiwi women's hands
Posted 25-Oct-2019 16:13


OPPO Reno2 Series lands, alongside hybrid noise-cancelling Wireless Headphones
Posted 24-Oct-2019 15:32


Waikato Data Scientists awarded $13 million from the Government
Posted 24-Oct-2019 15:27


D-Link launches Wave 2 Unified Access Points
Posted 24-Oct-2019 15:07



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.