ssh tunnel for web2py admin when no https is available
For a simpel web2py based server running on a non-https port I wanted to be able to get to the admin interface but normally that isn’t possible as you will get a “Admin is disabled because insecure channel” message.
The solution is to use a ssh tunnel:
Assuming the web2py server runs at server:8000.
ssh -L 8001:127.0.0.1:8001 user@server
Then go in your browser to 127.0.0.1:8001/admin
This entry was posted by Stas Zytkiewicz on January 3, 2014 at 11:23 am, and is filed under Linux, Windows. Follow any responses to this post through RSS 2.0.
You can skip to the end and leave a response. Pinging is currently not allowed.