2

I want to SSH into my Pi3 Model B using WiFi. As of now, my Pi works over Ethernet to my laptop. But when i disconnect the Ethernet cable, and try to login using my Pi IP using PuTTy nothing happens. Not even the user name password appears. Is there a comprehensive guide for setting up this on a Pi3 ? I have Raspian Jessie image on the Pi. Also, the booting of the OS is done through a USB drive. On my laptop, I have Windows 10 installed. I don't have a monitor, keyboard and mouse.

Müller
  • 227
  • 1
  • 4
  • 7

4 Answers4

2

If I'm not mistaken, you have set the static IP from the router configuration page.
I did the same so I'll tell you what worked for me -

Disconnect your router from the internet, just plug out the WAN cable or disconnect from the router config page.
Then try sshing into the Pi using the IP address you assigned, it should work (it did for me).

After that, you'll be able to ssh into the Pi even when your router is connected to the internet.

I tried this and it has worked for me. I had the exact problem as you.

Hope this helps.

EDIT :
If this fails, try connecting your laptop via LAN to your router and then sshing into it.

YaddyVirus
  • 303
  • 1
  • 6
  • 20
1

WiFi and Ethernet have different IPs. If your Pi is connecting to your router using WiFi, your router can tell you what IP the Pi has, or use a network discovery tool from your laptop. To make that IP static, look at this related question.

tlhIngan
  • 3,372
  • 5
  • 21
  • 33
1

Ok my friend... First of all, youre going about it all wrong. There was no reason at all to issue a static IP to your pi. The wlan0 IP address would have done just fine. Not sure why you want a static IP address... However, here what I suggest... You're attempting to run a pi headless... But it ain't working correctly. Do this:

1) reinstall the image... Better to be on a micro SD card. But if a flash drive is all you have, I suppose that will work.

2) it is my understanding that you can SSH over ethernet... Well, here's a way that you can at least see the "screen" of your pi... Use Windows remote desktop. Before you do this though, SSH over ethernet using putty and execute this command sudo apt-get install xrdp. When the install gets done, use Windows remote desktop to see your pi's desktop.

3) after accessing your pi's desktop, ensure the wireless adapter is turned on. If it is then log into your wireless network.

4) after you successfully login to the wireless network, type ifconfig into the terminal. Take note of the wlan0 IP address. DON'T MESS WITH IT UNLESS IT IS A CONFLICTING (another device assigned) IP ADDRESS.

5) Now unplug your ethernet cable and attempt to SSH over wlan. You will still be able to use the remote desktop with wlan as you were with ethernet. It may disconnect when you make the ethernet to wlan switch, but that's OK. You can always remote desktop again lol.

This should work for you. Admittedly, I've never been forced to do this as I have the necessary equipment as to avoid this. I certainly hope this helps. Let me know if it does.

BadgerTrucking
  • 485
  • 2
  • 7
  • 16
1

First thing you have to do is, check if you're able to access internet without connecting to Ethernet cable. Connect it with HDMI cable to see the GUI.

If you are able to access internet then, in your terminal write ifconfig and see what is the IP address against wlan0. Use that login via SSH.

If you're not able to access internet, then you've to add ssid and password to connect your PI with WiFi, then again see the IP address and connect.

Assigning a Static IP is overkill, unless and until you want to access it remotely, even in that case you've to implement port forward in your router's setting.

Gaurav Dave
  • 200
  • 1
  • 2
  • 15