I’m using SSH Keys and in my Wordpress install when trying to update plugins, it’s asking for: https://cl.ly/3G2m363d203A “Connection Information” via SFTP.
Since I’m using SSH Keys how would I go about this?
First of all this issue here have nothing to do with virtualmin… its your own setup however if you would do read wp docs you would found that this issue is not really issue… I will help you solve this problem, please follow this:
Specify FTP and SSH information in wp-config.php
Depending on your host’s setup, WordPress may ask you for FTP information whenever you try and update/upload something or you may just prefer to use SSH instead of FTP. So you can use all of the following definitions to define, in order:
FileSystem Method – either direct, ssh2, ftpext or ftpsockets
FTP Base – where your WordPress installation is located
Content Directory – set the location of your wp-content folder
Plugin Directory – set the location of your plugins folder
Public Key – the location of your SSH public key
Private Key – the location of your SSH private key
FTP User – the FTP or SSH username
FTP Pass – the password associated with the FTP User (not needed for SSH public key authentication)
FTP Host – the host and port of your FTP/SSH server (FTP port defaults to 21 and SSH to 22 if not specified)
FTP SSL – use SFTP, if supported by your server
…in your configuration the whole code should looks like this - more or less… please use your logic and your own settings, to replace default values in code.