Andr3as / Codiad-CodeTransfer

A small ftp/scp client plugin for Codiad
MIT License
12 stars 8 forks source link

Add FTP-secure option to the plugin. #5

Open JWGracht opened 9 years ago

JWGracht commented 9 years ago

Hi Andr3as,

I don't know if I can contribute to this plugin? But I like to add a ftp-secure (ftps) option to the FTP codetransfer. Some servers I work with are using FTPS instead of regular FTP for more security.

I was thinking to add to the FTP screen a radio button when or when not FTPS is used. In the class.ftp.php it is then:

///////////////////////////////////////////////////////////////////////// // Connect remote server ///////////////////////////////////////////////////////////////////////// private function connect() { if(radiobutton==active){$connection_id = ftp_ssl_connect($_SESSION['ftp_host'], $_SESSION['ftp_port']);} else{$connection_id = ftp_connect($_SESSION['ftp_host'], $_SESSION['ftp_port']);}

Andr3as commented 9 years ago

Good idea. Feel free to fork the repo and create a pull-request.

WicksterZero commented 7 years ago

Hi,

Was anyone able to add a SFTP/FTPS connection to codetransfer? It would really be helpful.

JWGracht commented 7 years ago

I stopt working on the FTPS feature because I walked into some issues after implementing the switch. I don't remember exactly, but I think it was some server-side certificate issue which cost me significant time. SFTP is reachable with the SCP interface I think?

Sorry Andr3as, I see I did not response to your labels.

WicksterZero commented 7 years ago

SCP didn't really work on most of the SFTP server I've tried it on. Plus if SCP did work it would not allow directory creation, file deletion and remote file edit, which is the main reason why I need SFTP.

On other webserver FTP apps, I noticed that they also don't have an SFTP option. But when you switch the option to "Passive On" and used Port 22, SFTP works. Is it possible to do this in Codetransfer?

Andr3as commented 6 years ago

I added ftps with 678137c, sftp follows as soon as I find some time.

WicksterZero commented 6 years ago

Thank you so much for the ftps addition. Can't wait for the sftp. Thank you again.

WicksterZero commented 6 years ago

I hope all is well. Have you had time to consider adding SFTP to Codetransfer? I just wanted to see if there is an update. Thank you so much.