Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Follow-up to #1372160: Does storage api work with sftp
SFTP ("SSH File Transfer Protocol") is more secure than FTP. This feature request is to add an SFTP service to the module, alongside the existing FTP service.
Possible approaches:
ssh2_sftp()
- http://php.net/manual/en/function.ssh2-sftp.php
- http://php.net/manual/en/wrappers.ssh2.php
- http://stackoverflow.com/questions/4689540/how-to-sftp-with-php
- http://www.sitepoint.com/using-ssh-and-sftp-with-php/
- Requires libssh2 and PECL:ssh2 (https://pecl.php.net/package/ssh2)
phpseclib
- http://phpseclib.sourceforge.net
- http://phpseclib.sourceforge.net/sftp/intro.html
- Requires including the phpseclib library (via Libraries? or directly in module?)
curl
Comments
Comment #2
Perignon CreditAttribution: Perignon commentedThanks for the feature request. If we can get more people behind this feature then we can get movement on it. We also accept patches as well that adds capability to the module. With my current workload, I am more focused on upgrading the modules I maintain to D8 and preparing for D8. Storage API is going to be my biggest challenge for this initiative!
Comment #3
m.stentaGreat! I am ramping up to get started on the SFTP patch soon. And I may be able to help with a D8 port as well, because I'm eager to move there myself as soon as possible.
Comment #4
Perignon CreditAttribution: Perignon commentedAwesome! Welcome the contributions!
Comment #5
zwerg CreditAttribution: zwerg commentedSubscribing
Comment #6
m.stentaComment #7
m.stentaOutlined three possible approaches.
Comment #8
m.stentaComment #9
m.stentaComment #10
esolitosI'm totally following this, I was actually looking for a way to serve some files that are stored in a sftp server of mine, in which I do not ant to have an http server!
This would be great to have!
I will help with testing and patches!