it wants your ftp info – like
http://ftp.example.com
ftp_user
ftp_password
Thought so, but if I choose FTPS it still says:
Failed to connect to FTP Server http://www.mysite.com:21
isn’t FTPS port 22 ?
most servers use port 22 for ftps
most servers use port 22 for ftps
Yes, and thats why I’m confused as well since I use sftp and the error message still says 21. Bug?
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
ftps is not on port 22. It’s still on the regular FTP ports but uses TLS to secure the data and command ports. The sftp app protocol is not ftps and is really ssh (22).
Google for how to add the ssh2 extension to your PHP install. One of the WordPress include file has good instructions but I can’t recall which file.
Given all the problems with security holes last year in earlier WordPress versions, I would expect better documentation in the Codex about how to do this correctly. One friend who has been a systems administration for 15 years took a quick look and said that FTPS option is broken.
The automatic upgrade is so convenient, but everybody I know who is vey experienced is concerned about security and tells me to just use SFTP and manually do upgrades.
Because my web domain was compromised recently, my server admin disabled ftp access. As a result, I now must SSH into the server to upload and download files. That process works fine. On the other hand, when I try to run Update Plugins from WordPress I encounter the “failed to connect to localhost port 21” error when I select ftps as my protocol. I’m not surprised by the connection error, since I am no longer allowed to use ftp. I assume I have no other option from this point forward other than to perform any plugin and WordPress updates manually. Using the Update tool, of course, is so much more convenient.
If you’re not allowed to use FTP, I recommend finding a new hosting provider. That’s just plain ridiculous considering how many hosting providers there are who offer FTP and would love your business.