Public and Private Keys are Incorrect for user

I solved it! Finally after a lot of frustrating days. In the tutorial page, deep down in the comments, someone suggested removing/commenting the following line: define(‘FTP_PRIKEY’,’/home/wp-user/’); I did this and immediately the error message disappeared and things started getting updated.

Why does WordPress need my private ssh key to update?

Essentially, WordPress needs to connect back to the server where it is actually running on. There are several possible ways WordPress can use to write files and thus “overwrite” itself during an upgrade. From a security perspective, the important part of this process is that the new files must have the same ownership as the … Read more

Automating command/script execution using PuTTY

PuTTY has the -m switch, that you can use to provide a path to a file with a list of commands to execute: Where the commands.txt will, in your case, contain a path to your shell script, like: Though for automation, your better use the Plink command-line connection tool, instead of the GUI PuTTY application, as you have already found … Read more

Differences between SFTP and “FTP over SSH”

Here is the difference: SFTP (SSH file transfer protocol) is a protocol that provides file transfer and manipulation capabilities. It can work over any reliable data stream, but is typically used with SSH “FTP over SSH” uses the regular old FTP protocol, but an SSH tunnel is placed between client and server. You probably won’t find libraries for … Read more

key_load_public: invalid format

As Roland mentioned in their answer, it’s a warning that the ssh-agent doesn’t understand the format of the public key and even then, the public key will not be used locally. However, I can also elaborate and answer why the warning is there. It simply boils down to the fact that the PuTTY Key Generator generates two different public key formats depending on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)