Weird SSH / Wi-fi problem
-
I have raspberry pi 3 with raspberrys own power supply. I run irssi screen on the pi along with retropie and I keep it on all the time.
Almost every day when not used for long time I need to reboot the pi to be able to connect to SSH from my desktop.
I use Putty, desktop is connected via cable to router and retropie is on Wi-Fi, since it is in living room.
I tried re-enabling the ssh and it says ssh is now enabled.
But only after a reboot I am able to connect to ssh again. -
How far away is your Pi from the Router? Mine's unavoidably far and I have trouble losing connection all the time. The Antennae on the Pi3 is pretty weak.
-
@tuomasjar yeah, I agree you'r most likely getting disconnected over time. Next time you ssh into your pi install the wavemon wifi utility to survey signal strength. To do so issue "sudo apt-get install wavemon" then run the application with "sudo wavemon -i wlan0". link quality should be atleast 60% and also take note of your signal level . The lower the number the better. My Pi is about 8 feet away from my router and my link quality is 100%, signal level -41dBm. Hope this helps :)
-
Alright I'll try that. Pretty far away a behind two soft walls. Around 10 meters. It shows 40-50% quality. signal lvl -75 dBm
-
Is there a way to refresh the connection without rebooting the whole pi?
-
@tuomasjar sudo ifdown wlan0 down && sudo ifconfig wlan0 down && sudo ifup wlan0
-
Now it seems that when I use my phone to connect to the SSH from external source my port forwarding works, but I can't connect from my desktop using internal ip address. Retropie is 192.168.100.11 and desktop is 192.168.100.15...
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.