That’s all, simple when it works – the first time it can take some time to get it working. I did this usermod -a -G group usernameĪs this was a WP site installed from the Cloud Launcher, I also had to tweak the file permissions – I used this command chmod -R g+w. I was using my own name, I got file permission error when I first try to upload, I resolved that by attaching the user in ~/.ssh/wp-ssh-key to the group in the folder I was uploading to. Select your ~/.ssh/wp-ssh-key from your local laptop.ĭepending on the user that you have set up in your ~/.ssh/wp-ssh-key – you might need to do some changes on your server to group management and file permission.Open FileZilla and select Settings that will open up the settings window.To make FileZilla work with your GCP project and be able to copy files over from your local laptop you need to add the ~/.ssh/wp-ssh-key to Filezilla. When you are done, use the exit command to disconnect from the instance. If the connection is successful, you can use the terminal to run commands on your instance. ![]() For this example, the private key is at ~/.ssh/my-ssh-key. Your username is the Google username that you use to access your project. Specify your username and the external IP address for the instance that you want to connect to. Use the ssh command to connect to your GCP instance.Use the ssh command to connect to your instances The public key is now set to work across all of the instances in your GCP project. At the bottom of the SSH Keys page, click Save to save your new project-wide SSH key.Copy the output from the cat command and paste it as a new item in the list of SSH keys.is the user on the instance for whom you will apply the key.The terminal shows your public key in the following form:.Obtain the contents of the ~/.ssh/wp-ssh-key.pub public key file with the cat command.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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |