![]() You may have to click "Disconnect" on the toolbar to be able to write to that directory with new permissions. Go back to FileZilla and drag your web files into the right pane "html" directory. Type the command "sudo chmod -v 777 /var/www/*" (That's an asterisk at the end.) That will launch the PuTTY terminal and give you a command prompt for the Linux system. Paste that command into the "Google Cloud SDK Shell". On the right of the instance click the "SSH" dropdown and select "View gcloud command". Go to Google Cloud console and list your Compute Engine instance. Leave FileZilla-without closing it-and go to "Google Cloud SDK > Google Cloud SDK Shell". Scroll down to the last directory "var" and click on it and then expand its plus (+) sign. This loads the entire operating system's directory structure. On FileZilla right pane "Remote site" scroll to the top of the directory tree and click the plus (+) sign, and then click the plus (+) sign again. On the FileZilla toolbar click "Quickconnect". In the FileZilla toolbar enter copied "Key comment" from PuTTY into the FileZilla field "Username". In the toolbar enter "s" (with your instance's external ip address) in the "Host" field.į. On the right, click "Add key file." (Navigate to the ppk private key you saved.)Į. Start FileZilla and then other needed programs (described herein)Ĭ. * add the public SSH key (KEYNAME.pub) by pasting in from text editor.ģ. In Google Console edit your Compute Engine instance. From PuTTY click "Conversions > Export OpenSSH key" and save with extension ".ppk"į. Paste it into a text editor and save it as KEYNAME.pubĮ. Had to use the PuTTY key to make FileZilla connect.Ĭ. I could not connect to instance with key generated by gcommand (the Google Cloud connection). PuTTY, the other needed program, is also free.ġ. Once my files were uploaded into my directory on my instance from my computer I was able to mv them to wherever I needed those files to be within the gcloud vm instance.įileZilla free version and FileZilla Pro both are able to connect to a Google Cloud VM instance of Debian. your remote directory is the same as /home//, server type is unix (I had centos vm in google cloud) check the prompt: your key should be your method of authentication. ![]() The host is the ip address of my gcloud vm instance, the user is whatever your username is once you connect to the instance via ssh. ssh/ folder and imported that into filezilla > settings > sftp I got the google_compute_engine private key from the. When I first try to connect to an instance from my terminal I was prompted to to create ssh keys, I'm on a mac so the keys were setup in /Users// folder under. This is how I got this to work with filezillaįirst I downloaded and run the gcloud sdk : I gave up with gcloud compute copy-files as I couldn't figure out why my instance was not been fetch and something with insufficient permissions, then I started looking into how to sftp into my gcloud instance
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |