I am trying to update some plugins on a WordPress site.To do this directly through WordPress you need to provide:HostnameUsernamePasswordConnection yypeI am definitely using the correct details however they are being refused.An error is displayed: ERROR: There was an error connecting to the server, Please verify the settings are correct.There is a thread on the WordPress forum asking similar question but there is no answer.I have tried using my regular hostname in addition to localhost, localhost:21 and localhost:22.Does anyone have any suggestions how to make this work correctly?
WordPress refusing FTP connection when using correct details
wordpress;ftp;plugin
If it were a folder permission error you would connect but get an error about permissions.First enable WP_DEBUG in wp-configIf you have root access, check your php error log, and syslog in /var/logFrom a shell, try FTPing to localhost does it work? Can you read and write to your plugins folder? Now also try from a remote machine FTPing into the server and again checking your read/write permissions.Try setting the FTP details in wp-configdefine( 'FS_METHOD', 'ftpext' );define( 'FTP_BASE', '/path/to/wordpress/' );define( 'FTP_CONTENT_DIR', '/path/to/wordpress/wp-content/' );define( 'FTP_PLUGIN_DIR ', '/path/to/wordpress/wp-content/plugins/' );define( 'FTP_PUBKEY', '/home/username/.ssh/id_rsa.pub' );define( 'FTP_PRIKEY', '/home/username/.ssh/id_rsa' );define( 'FTP_USER', 'username' );define( 'FTP_PASS', 'password' );define( 'FTP_HOST', 'ftp.example.org' );define( 'FTP_SSL', false );http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_ConstantsFigure out why you can't connect first. Then move on to folder permissions which is much easier to debug.If you still have trouble just use this plugin http://wordpress.org/plugins/ssh-sftp-updater-support/Keeping your WordPress install up-to-date and installing plugins in a  hassle-free manner is not so easy if your server uses SFTP. SSH SFTP  Updater Support for WordPress uses phpseclib to remedy this  deficiency.