How to connect to SFTP in FileZilla using a private key

64,028

Solution 1

You have to configure the key authentication.

Open the menu Edit > Settings… and navigate to Connection > SFTP.

Add the key files and you're done.

enter image description here

Solution 2

The fix for me was to switch the logon type to Key File. In my case, I have an Ubuntu user with the correct permissions which I used the link below to configure.

I had tried the answer above, but it did not work. I guess it may have if the user was in fact root?

Link to create a non root user to log in with SSH key: https://www.digitalocean.com/community/questions/secure-ubuntu-server-for-non-root-user-using-only-ssh-keys

In FileZilla: FileZilla example

Share:
64,028

Related videos on Youtube

loremIpsum1771
Author by

loremIpsum1771

Updated on September 18, 2022

Comments

  • loremIpsum1771
    loremIpsum1771 over 1 year

    I've downloaded FileZilla on Ubuntu 14.04 (Trusty Tahr) using the package manager (apt-get) and I'm currently setting up a site to transfer files for on the remote server I'm using.

    For the login type, I need to use a private key, but it's not listed as an option. Did I install the wrong version of FileZilla or something? I tried to upgrade the installation, but it says that FileZilla is up to date.

  • loremIpsum1771
    loremIpsum1771 over 8 years
    I tried to add a ssh key file on this page by selecting it after having clicked the "Add Keyfile" button, but a dialog box popped up saying that file was apparently in the wrong format and needed to be converted to the putty format (.ppk or something). When I clicked yes, it brought up the file manager, but no longer shows the keyfile in the directory where its stored. What is the proper way to add the file or should I use the other option of using the system's SSH agent (I don't know how to do that either though) ?
  • A.B.
    A.B. over 8 years
    Sorry, be fair. That's a completely different question. You should ask a new one. Answering new questions in comments is confusing for other readers.
  • loremIpsum1771
    loremIpsum1771 over 8 years
    Right, here is the new post: askubuntu.com/questions/700164/…
  • A.B.
    A.B. over 8 years
    Thanks for the link. Seems, your question here was solved. You could accept the answer here. Click the check mark at the left side of the answer. And perhaps an upvote.
  • Leto
    Leto about 6 years
    You have to login with the "normal" option and leave the password blank (you shoud have added the ssh key file in the options before, like explain in this answer)
  • Nash
    Nash over 5 years
    I managed to do it by converting the keyfile to ppk with putty-tools and selecting the keyfile option.