Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>To make my answer clearer I see three (3) systems here.</p> <ol> <li>The webserver running the PHP script; later refered as the WebServer</li> <li>The Unix server running on your client site; later refered to as the UnixServer</li> <li>The Exchange server running on your client site; later refered to as the ExchangeServer</li> </ol> <p>What you could do is use <a href="http://www.harding.motd.ca/autossh/" rel="nofollow noreferrer">autossh</a> to tunnel a connection from the WebServer through the UnixServer server with an endpoint at ExchangeServer. It is no end-to-end encrypton since you would not have an encrypted link from the UnixServer to the ExchangeServer it gets you closer to your goal.</p> <p>Full documentation on autossh can be found <a href="http://www.harding.motd.ca/autossh/README" rel="nofollow noreferrer">here</a></p> <p>The basic steps for the setup would be this:</p> <p>A. <a href="http://www.freebsdwiki.net/index.php/SSH:_Passwordless_authentication" rel="nofollow noreferrer">Setup passwordless authentication</a> from the WebServer to the UnixServer. You'll have to be carefull to protect the RSA key generated otherwise you've just opened a gaping hole on their system. Ideally run autossh under an unprivilege user and have the account used on the UnixServer to be unprivileged as well. <strong>Make sure you test the connection before you start using autossh</strong></p> <p>B. Setup your ssh options for keepalive (autossh is a fallback option). Make sure that the <code>~/.ssh/config</code> file for the user launching autossh has these option setup:</p> <pre><code>TCPKeepAlive yes ClientAliveInterval 60 ServerAliveInterval 15 ServerAliveCountMax 3 </code></pre> <p>C. Setup autossh. Linux.com as an articile about it <a href="http://www.linux.com/feature/134133" rel="nofollow noreferrer">here</a> and debianadmin.com as one <a href="http://www.debianadmin.com/autossh-automatically-restart-ssh-sessions-and-tunnels.html" rel="nofollow noreferrer">here</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload