I generated my ssh key through the google sdk shell, then i went to put my key in FileZilla and connect to my google compute engine instance and it wont accept my key. How do i fix this?
Asked
Active
Viewed 3,096 times
-1
-
What is your operating system ? – Eric Ly Apr 15 '15 at 07:51
-
@DeadEye debian i believe – Kasai Jefferson Apr 15 '15 at 07:54
-
Ok. What do you mean by "It won't accept my key" ? – Eric Ly Apr 15 '15 at 07:58
-
@DeadEye it says "Error: Disconnected: No supported authentication methods available (server sent: publickey)" and then on the next line it says "Error: Could not connect to server" – Kasai Jefferson Apr 15 '15 at 08:12
2 Answers
1
It seems like your ssh key is not loaded by Filezilla. You can try two different solutions :
1/ Connect to the GCE through a SSH connection in your shell, then try to connect with FileZilla (this uses the SSH_AUTH_SOCK environment variable)
2/ Add your key to FileZilla :
- Click on "Edit" and then "Settings"
- Go to "Connection" and then "SFTP"
- Click on "Add keyfile"
- Select your private key file and open it.
- Click on OK
Use sftp://INSTANCE and your username to connect to your GCE instance.

Eric Ly
- 373
- 2
- 13
0
Please check, if you are connecting using the correct user name. Google sometimes has problems parsing the username out of the pasted public key.
You can check the username associated to the key on https://console.developers.google.com/project/$yourprojectid/compute/metadata/sshKeys

user1737246
- 29
- 5
-
That was my first issue, but i got past that and ran into this error – Kasai Jefferson Apr 15 '15 at 08:11
-
it says "Error: Disconnected: No supported authentication methods available (server sent: publickey)" and then on the next line it says "Error: Could not connect to server" – Kasai Jefferson Apr 15 '15 at 08:12