[14]Support for SFTP

User avatar
tfuller
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 218
Joined: Tue Sep 20, 2005 11:30 pm
Location: Oregon
Contact:

[14]Support for SFTP

Postby tfuller » Sun Feb 17, 2008 11:23 pm

Add support for Secure File Transfer Protocol to Joomla 1.6

Why: More and more server hosts are using only SFTP. Our use case is a state government Data Center. All new servers are now configured to only accept SFTP connections and will no longer accept FTP connections on port 21 or any port. This renders the Joomla 1.5 FTP layer unable to operate.

We have a Joomla 1.5 site to bring up in this data center and have not actually been successful yet due to this restriction. We will find a work around but this would serve the community to broaden the server base and configuration upon which Joomla can be installed.

I have no idea how this would be accomplished. I only bring it up as a need in an actual case.
Author of component Joomla Bible Study:
http://www.JoomlaBibleStudy.org

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: Support for SFTP

Postby ircmaxell » Mon Feb 25, 2008 12:45 am

I'm going to write up a white paper on this. I would like to separation from just JFTP, JFILE, etc. I really would like to see a stream type handler. Something along the lines of a complete abstraction layer. It shouldn't matter if you want FTP, or SFTP, or SCP, or SVN, etc... Think of the possibilities if you can control where the server writes its data (would solve a fundamental problem with server clusters). I've got some really cool ideas for this one, so I'll work on the white paper tomorrow...
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

[13]JFileBackend Proposal

Postby ircmaxell » Tue Mar 11, 2008 6:14 pm

1. Introduction

1.1 Scope
The scope of this document is a first draft of improvements to the extension of the JFTP concept

1.2 Objective of the document
The objective is to give a basis for a discussion about an extension to the existing JFTP backend

1.3 General remarks
This proposal is based on the functionality of JFTP in the Joomla! 1.5 stable versions.

1.4 Definitions

1.5 License
GNU GPL

2. What is the current functionality of JFTP

2.1 Functionality
JFTP is presently designed as a proxy to allow Joomla to modify the filesystem via FTP. This provides a method of bypassing permissions issues.

3. What are the proposed improvements?

3.1 Addition Of JFileBackend
Provide a unified, consistant, and simple JFileBackend framework which will allow JFilesystem to call the configured backend (and will allow 3pd and administrators to write new backends).

3.2 Supported Backends
  • Default – PHP’s file methods
  • FTP – Current functionality of JFTP
  • SSH – Provides SSH tunneling (if available in php)
  • SCP – Provides SCP file access (if available in php)
  • SFTP – Provides SFTP file access (if available in php)

4. Technical Realization

4.1 Core Changes
Every file access and change in the core that does not use JFilesystem would need to be altered to use JFilesystem. Present impimentations of JFilesystem would not need to be altered.

4.2 Global Configuration Changes
The selection for JFTP would need to be changed to a drop down style selection, with the appropriate parameters made available for the backend selected.

5. Intention
The current framework for Joomla 1.5 is extremely flexible, and is extendable from database, cache, session, and several other standpoints. Adding a JFileBackend series of classes would allow for a complete abstraction on the method Joomla 1.6 access the file system.

6. Effects on...

6.1 Users
Proper implementation should have no negative effect on users

6.2 3P extensions
While these changes should have no negative effect on extensions, provided that they use the JFileSystem classes to write files.

6.3 Performance
Since JFileSystem is only used for permanent writes (not cache), the performance impact should be negligible.
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

RoscoHead
Joomla! Explorer
Joomla! Explorer
Posts: 318
Joined: Mon Jul 30, 2007 11:01 pm
Location: Melbourne, Australia
Contact:

Re: JFileBackend Proposal

Postby RoscoHead » Thu Mar 13, 2008 3:34 am

One thing to think about is how this might be handled during installation - would installers have a way to supply their own non-core backend somehow?

ROSCO

User avatar
THE_AI
Joomla! Explorer
Joomla! Explorer
Posts: 252
Joined: Sat Jun 03, 2006 4:33 pm
Contact:

Re: [14]Support for SFTP

Postby THE_AI » Sat Apr 26, 2008 10:03 am

Very good white paper ircmaxell !

User avatar
tfuller
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 218
Joined: Tue Sep 20, 2005 11:30 pm
Location: Oregon
Contact:

Re: [14]Support for SFTP

Postby tfuller » Sat Apr 26, 2008 2:18 pm

Excellent white paper! Where do we go from here?
Author of component Joomla Bible Study:
http://www.JoomlaBibleStudy.org

User avatar
RadoX
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Wed Jan 30, 2008 3:06 pm
Location: Iceland
Contact:

Re: [14]Support for SFTP

Postby RadoX » Fri Jan 09, 2009 11:24 am

I´m looking forward to see this in Joomla, I have a server thats on Linux and requires sftp so its kinda hard atm to opparate and keeping security up and not to mention the owner problems of files.
Admin of the Joomlís! community
Member of the Icelandic Joomla Translation Team
http://www.joomlis.net

User avatar
Rhand
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 213
Joined: Sat Oct 01, 2005 3:09 pm
Location: World
Contact:

Re: [14]Support for SFTP

Postby Rhand » Fri Jan 09, 2009 5:37 pm

Yes, I have a server using SFTP as well. I guess I will have to upload the files manually and then install them until Joomla! 1.6
CEO Imagewize Ltd: webdesign | web development | branding
website: Imagewize.net

queenzeal
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon May 25, 2009 2:36 pm

Re: [14]Support for SFTP

Postby queenzeal » Mon May 25, 2009 2:38 pm

My server only supports SFTP but doesn't have any PECL extensions installed. Will Joomla! include a pure-PHP SFTP implementation? I've been playing around with one, in particular, as of late:

http://phpseclib.sourceforge.net/docume ... l#net_sftp


Return to “Accepted - Archived”

Who is online

Users browsing this forum: No registered users and 2 guests