how to (automatically) update Wordpress with SFTP instead of FTP: is this doable?

Have the feeling that everybody is staring at you in the other forums? Then look here, in this forum nobody does care what you say ;-)

Moderator: Project members

Post Reply
Message
Author
openSuseman
226 Transfer OK
Posts: 104
Joined: 2011-09-11 18:24

how to (automatically) update Wordpress with SFTP instead of FTP: is this doable?

#1 Post by openSuseman » 2022-03-07 15:02

Good day der FileZilla - experts, hope youre all doing well and every ting goes all right


The Filezilla-Project and SFTP - i am a really long term user of FileZilla.

Today i have a question: how to (automatically) update Wordpress with SFTP instead of FTP: is this doable?

well i a ma long time user of FIleZilla - i use it for 10 years now.

the question i have: is there a way to update Wordpress without the use of FTP, but with SFTP (which uses SSH)?
I've only got my server set up for SSH access (and therefore SCP/SFTP).

well as far as i know there are some configuration instructions in Codex on Enabling SSH Upgrade Access recommend either:
( https://wordpress.org/support/article/e ... ade-access )

1. Using SSH SFTP Updater Support plugin from official repository (cf.: https://wordpress.org/plugins/ssh-sftp-updater-support/ )
2. Using built–in SSH2 support, which requires the PECL SSH2 extension installed on the server.

It used to refer to this tutorial: Using SSH to Install/Upgrade in before, which might be of use. (cf.: see: http://www.jonathan.vc/wordpress-instal ... e-ssh.html )

see also: Enabling SSH Upgrade Access #Enabling SSH Upgrade Access: https://wordpress.org/support/article/e ... ade-access

Afaik - there are as far as i can see two ways to upgrade using SSH2.
a. The first is to use the SSH SFTP Updater Support plugin. The second is to use the built-in SSH2 upgrader, which requires the pecl SSH2 extension be installed.
b. To install the pecl SSH2 extension you will need to issue a command similar to the following or talk to your web hosting provider to get this installed:

Code: Select all

pecl install ssh2
After installing the pecl ssh2 extension you will need to modify your PHP configuration to automatically load this extension.

pecl is provided by the pear package in most linux distributions. To install pecl in Redhat/Fedora/CentOS:

Code: Select all

yum -y install php-pear
To install pecl in Debian/Ubuntu:

Code: Select all

apt-get install php-pear
The guys in the manpages they recommended to use a private key that is not pass-phrase protected. There have been numerous reports that pass phrase protected private keys do not work properly. If you decide to try a pass phrase protected private key you will need to enter the pass phrase for the private key as FTP_PASS, or entering it in the “Password” field in the presented credential field when installing updates.


well i need to know how to add the DAta of my SFTP-Acesss on the serer

Many thaanks for any and all help

regards openSuse m :D

Post Reply