Click the Edit button so that you can modify the public SSH keys in your project.Click SSH Keys to show a list of project-wide public SSH keys.Go to the metadata page for your project on the GCP web console.Restrict access to your my-ssh-key private key so that only you can read it and nobody can write to it.If the user does not exist on the instance, Compute Engine automatically creates it using the username that you specify in this command. where is the user on the instance for whom you will apply the key.ssh-keygen -t rsa -f ~/.ssh/wp-ssh-key -C.The example creates a private key named my-ssh-key, and a public key file named wp-ssh-key.pub. Specify the -C flag to add a comment with the username on the instance for whom you will apply the key. Open a terminal on your workstation and use the ssh-keygen command to generate a new key-pair.I first had to generate a new SSH key-pair on my OS X laptop, here is what I did: I’m not so much for the command line, I just went for using the GCP web console to get this done. This was the first time for me to use GCP – so I was looking through the documentation that Google has provided, pretty straight forward using the GCP gcloud command line. I work on an OS X platform and FileZilla is my goto tool for uploading files to a server. This is how you can launch a WordPress site from GCP. To be able to upload files to the server and change permissions I needed to set up SSH access and to configure FileZilla. I recently worked on a project to set up WordPress on the Google Cloud Platform (GCP), the setup of WordPress was straight forward in GCP with the Cloud Launcher.
0 Comments
Leave a Reply. |