Keywords: LAMP/MAMP/WAMP - Google Cloud Platform - Technical issue - Connectivity (SSH/FTP)
I built a LAMP web site on a free trial GCP server using Bitnami LAMP STack installation. Uploaded and installed my web site via Filezilla and built my MySql database. (not using wordpress, just home-made php code) Everything working 100%. Could access phpmyadmin with Putty tunnel. All great. Mysql working great. Web site working perfectly.
Then, next day, putty wouldn't connect, filezilla wouldn't connect. But web site was still running. I did notice there were 2 keys on the VM>Metadata page that said they expired the previous day, so I deleted them and added new ones.
Since then I've blown away my entire VM several times and rebuilt it in every way I could find, following the written instructions I noted down when I first built it, and then again using all other suggestions available, but still cannot connect with SFTP on Filezilla, or with Putty.
SSH connection is ok, and everything seems to be working.
Putty and Filezilla just give me persistent "Server refused our key" error
I have many times created new key pairs with Puttygen, copied the public key into "Metadata" page and added the private key into Filezilla Edit>Settings>SFTP area (Comment="bitnami" with no password)
I have also gone to VM Instances>Edit>added the public key
I have downloaded the ppk file from the Bitnami control page and added that to Filezilla, but no difference. Same message.
On Filezilla, I have increased the debug level to 3, but basically just says server refused our key, No supported authentication methods available.
On Filezilla Site Manager, I have also tried changing Logon type to "Key File", user =bitnami and selecting a private key file (both the Bitnami ppk file and ones generated by Putty). No difference. The server is determined to not accept any ppk files for authentication.