[cvs] [Wiki] created: IngoSSH2

Wiki Guest wikiguest at horde.org
Sat Aug 12 13:15:21 PDT 2006


guest [24.249.152.65]  Sat, 12 Aug 2006 13:15:21 -0700

Created page: http://wiki.horde.org/IngoSSH2

For those who prefer SSH2 over FTP for for security, due to upgrades to the Horde framework , Ingo can now be configured to use SSH2 with a small change to the /ingo/lib/Driver/vfs.php script.
 
This can certianly be improved on (and please do!), but the down and dirty way is simply to comment out the following 2blocks under the function setScriptActive and getScript (near lines 75 & 101):

<code type="php">
/*
if  ($this->_params['vfstype'] != 'ftp) {
     return PEAR::raiseError(_(sprintf("VGS type \"%s\" not yet implemented.", $this->_params['vfstype'])));
}
*/

</code>

then to your /ingo/config/backends.php and add

<code type="php">
$backends['maildrop'] = array (
    'driver' => 'vfs',
    'preferred' => '',
    'hordeauth' => false,
    'params' => array(
        'hostspec' => 'localhost',
        ''filename' => '.mailfilter',
        'port' => 22,
        'vfstype' => 'ssh2',
        'username' => 'user',
        'password' => 'pass',
       'vfs_path' => '/path/to/maildrop/',
    ),
    'script' => 'maildrop',
    'scriptparams' => 'maildir',
    )
)

</code>



More information about the cvs mailing list