|
Creating a SSL/TSL connection for FTP |
|
|
|
|
Written by Administrator
|
|
Saturday, 18 November 2006 |
|
Using Secure FTP is a great way to add security to your site. Regular FTP sends the username and password in plain text.
Using Secure FTP is a great way to add security to your site.
Regular FTP sends the username and password in plain text. To Secure
you FTP connection there is two choices, SSH which uses a secure shell.
The problem with using SSH for FTP is that the user must have a
username and password for the Linux server. Of course this would not be
a username with root access, but even without root access the username
and password in the wrong hands can be very dangerous. It can be very
time consuming and confusing for a Linux noobie to only allow the ssh
username access to FTP.
/**
* Replaces the geshi default classes with mambo/joomla classes
*/
function replaceGeshiWithMamboClasses() {
if (document && document.getElementsByTagName) {
var pre_items = document.getElementsByTagName('pre');
var n = pre_items.length;
for(var i = 0; i < n; i++) {
// divs
var divs = pre_items[i].getElementsByTagName('div');
var dlen = divs.length;
for (var j = 0; j < dlen; j++) {
if (divs[j].className == 'head') { // header
var className = 'sectiontableheader';
} else if (divs[j].className == 'foot') { // footer
var className = 'small';
} else if (divs[j].className == ' ') { // code lines
var className = 'sectiontableentry1';
} else {
var className = '';
}
divs[j].className += ' '+className;
}
// anchors
var a_items = pre_items[i].getElementsByTagName('a');
var alen = a_items.length;
for (var l = 0; l < alen; l++) {
a_items[l].target = '_blank';
a_items[l].setAttribute('target', '_blank');
}
// list items
var li_items = pre_items[i].getElementsByTagName('li');
var ilen = li_items.length;
for (var k = 0; k < ilen; k++) {
li_items[k].className += ' sectiontableentry1';
}
}
}
}
// initiate our class replacements
addLoadEvent(replaceGeshiWithMamboClasses);
|
|
Last Updated ( Sunday, 19 November 2006 )
|