I'm able to connect raspberry pi 3(running kali linux) to a phone via its mobile Hotspot using ssh. But each time I first have to plug the pi to a screen to start it up. I want to know a method with which when ounce connected to the power source the pi automatically connects to my phone's Hotspot and then I can access it using my ssh client(juicessh). I also wanna know how to use vnc to do the same.

Thanks for your time and I appreciate all the help i can get.


As you are basically asking the same question again, here are the steps to carry out to permanently configure access to a wireless LAN. See https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

Run wpa_passphrase in a terminal. When asked, enter the name/SSID and passphrase for your mobile phone AP.

Next, copy the output of the program into /etc/wpa_supplicant/wpa_supplicant.conf.

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Paste, save, exit.

Reboot. Now the Pi will connect to this network every time it is available. You can also add multiple networks to this file.

| improve this answer | |
  • I get a wlan0 link is not ready. – aniket sharama Jul 23 '17 at 6:01
  • It connect to the phone's Hotspot after I type the username root and password toor and not before why? – aniket sharama Jul 23 '17 at 6:10
  • Where and when do you see the wlan0 not ready? – TheDiveO Jul 23 '17 at 6:42
  • When the kali is booting up it says reading up WPA supplicant and then something and then I see it after which it boots up and the system starts. It happens very fast. – aniket sharama Jul 23 '17 at 6:45
  • Okay, thanks. Can happen, depending on timing. But shouldn't be a problem, I think. What do you mean by connecting to the hotspot only after typing username and password? Where do you type this in? If you have set up the wpa_supplicant.conf then the Pi should connect automatically after some time. – TheDiveO Jul 23 '17 at 6:57

You might want to check out dataplicity. It lets you ssh to your pi from your phone from a web browser.


| improve this answer | |

This would be fixed by simply enabling autologin.

| improve this answer | |
  • 1
    Don't think he's asking about auto login but about automatic wifi connect. – TheDiveO Jul 22 '17 at 18:44
  • You can be right be he didn't make any of that clear. And that's weird because kali connects automatically to wifi. wpa-supplicant starts on boot, so I don't really understand the -1s but it's ok, I don't care. – FFY00 Jul 22 '17 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.