EFForg / OpenWireless

The official home of the EFF OpenWireless Project
Other
732 stars 80 forks source link

Setting SSH key works but settings page does not change to indicate that key has been received and subsequently locked. #272

Closed Rangak closed 9 years ago

Rangak commented 9 years ago

This used to work but recent commits broke it. Probably related to standardizing time stamp handling.

Rangak commented 9 years ago

This seems to have been an artifact of stale files in browser. After restart of the browser the problem disappeared. Close this for now as a browser artifact. If something like this is reported again, see if a fix is possible.

jsha commented 9 years ago

We can probably add this header to prevent caching of API endpoints:

Cache-Control: max-age=0
Rangak commented 9 years ago

Ignore above comments. The root cause was that the permissions on /etc/dropbear directory was 0700 instead of 0755, even though it is set to 0755 in rc.local.

Rangak commented 9 years ago

Fixed in https://github.com/EFForg/OpenWireless/commit/d7faab5eea2a00715d59c0abb1cce012a57955ea . Added code in routerapi/ssh_key to ensure permissions are correct when creating an authorized_key.