ssh tunnel to http which redirects to https failure

Gidday LJ and LJ fans,

I'm a long time dabbler in the 'nix black arts but only recently got serious about it.

I run tomcat at home for, amongst other things, my wiki. I set it up with fairly serious security to require users to login, and it also forces redirection to https for all read/write.

I've just setup a ssh tunnel so I can access it (thank to Linux Journal's help).

ssh -T -N -L 3210:localhost:8080 oehmsmith@xx.xx.65.14 -oPort=13213

So this ssh' to port 13213 on my server and it redirects to port 8080. That's how i understand it and that part seems to work.

The tomcat and its included examples, documentation and other webapps come up fine. But when I hit my wiki the security redirects to:


(Mmmm, I'm not sure why it isn't https://kanga.local:8443. But that is not an issue at the moment).

And kanga.local is of course local to my home network.

I tried setting the tunnel directly to :8443 (https) but when I go to access Tomcat what's returned is a binary (encrypted) file.

As I'm new to this I'm hoping somebody more wise than I in this area can tell me what I can do to get around this (apart from killing the security policy I've setup on my wiki).

Feedback appreciated!



One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix