SFTP cannot add key file

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Post Reply
Message
Author
Sandgroper
500 Command not understood
Posts: 2
Joined: 2022-03-16 11:35
First name: Lyn
Last name: Smith

SFTP cannot add key file

#1 Post by Sandgroper » 2022-03-16 11:46

Good evening
I have set up a Multisite SFTP key in my website hosting account – a Private Key – and copied the key onto the clipboard and then into a file. I am unable to enter it into FileZilla as it says it could not be loaded or does not contain a private key. I had called the file private-key.ppk.
Does it matter what the file is called? What am I doing wrong?
Thanks

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: SFTP cannot add key file

#2 Post by boco » 2022-03-16 17:21

Is it password protected, maybe?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: SFTP cannot add key file

#3 Post by botg » 2022-03-16 19:02

FileZilla can detect password protected private key files and, depending on the wide variety of recognized format, use it directly or convert it as needed.

It seems there really is no private key in that file. Maybe you made an error when copying the file contents over the clipboard? Try copying the actual key file directly, not involving the clipboard.

Sandgroper
500 Command not understood
Posts: 2
Joined: 2022-03-16 11:35
First name: Lyn
Last name: Smith

Re: SFTP cannot add key file

#4 Post by Sandgroper » 2022-03-17 01:13

Thank you for replies.
I have tried a direct copy and paste not using the clipboard to no avail.
I have no connection issues with using FTP. It is just SFTP that is not working for me.
How do I tell if it is password protected?
Thank you.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: SFTP cannot add key file

#5 Post by botg » 2022-03-17 08:57

If the file contains the private key, FileZilla will let you know if it's password protected.

digitalforge
500 Command not understood
Posts: 4
Joined: 2022-07-23 22:17
First name: Digital
Last name: Forge
Location: Nederland, Papendrecht

Re: SFTP cannot add key file

#6 Post by digitalforge » 2022-07-23 22:22

You need to convert your key to the FileZilla supported key maybe? you can do that using PuttyGen.
Last edited by boco on 2022-07-24 08:06, edited 1 time in total.
Reason: Changed link to site containing trackers to the original PuTTY download page. Linking to such sites is not allowed here!
Removed: Linking to any commercial sites is not allowed here!

Post Reply