PieHead
Posts: 20
Joined: Sun Dec 14, 2014 5:00 pm

Does WiFi Shut off after no useage? - SSH problems

Tue Jan 13, 2015 9:12 pm

When I plug my Pi in and boot up, I am able to connect over the air with SSH at 192.168.1.100 (static IP address set in /etc/network/interfaces).

However if I boot up my Pi and leave it for 1-2 hours or longer, when trying to connect to my Pi with SSH at the same address, I always get the SSH error

Code: Select all

    Network error: Connection timed out

It seems as though the WiFi may shut down on the Pi after no useage for a certain period, however looking at the Pi physically, the lights seem the same as they are when directly booting up - Flashing WiFi Usb and other solid PI board LEDS.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Does WiFi Shut off after no useage? - SSH problems

Wed Jan 14, 2015 9:25 am

Some usb wifi adaptors have a power-saving mode whose operation would have the effect you are describing. You may need to research how to disable this feature for your particular model of wifi adaptor. (The specific details vary from one model to another.)

mike_p
Posts: 30
Joined: Fri Aug 01, 2014 2:35 pm
Location: Surrey, UK

Re: Does WiFi Shut off after no useage? - SSH problems

Wed Jan 14, 2015 9:54 am

If you're using Putty, you'll find it will time-out after a certain period of inactivity. You can then simply restart the session.
Alternatively there is a putty setting to "keep-alive"

edited to say: timeout after a period of inactivity is normal behaviour for ssh servers.

Return to “Troubleshooting”