Blog

Connect SFTP with key file (pem or ppk) on filezilla – linux ubuntu 20.04

Share your learning

How to connect SFTP with key file on filezilla?

I have learnt a new thing, and here I am to share with you guys. Actually, I am quite sure that most of the developers already know about these small things related to FTP connections.

So, without any delay. Let’s get started

Read Also : 7 Way to earn as a programmer

What is SFTP, explained by Techopedia?

Source: Secure File Transfer Protocol (SFTP)

Let’s summarize the techopedia’s definition of SFTP. 

SFTP is an improved version of FTP and used for data and file security purposes.

If we talk about FTPS, it is just an FTP protocol run over Transport Layer Security (TLS), or Secure Sockets Layer (SSL). FTPS does, in fact, require complex firewall configurations as ports 989 and 990 need to be open, depends on a centralized public certificate authority, and is prone to file corruption since it defaults to ASCII mode.

Secure Shell is a cryptographic component of internet security. SSH and SFTP were designed by the Internet Engineering Task Force (IETF) for greater web security. SFTP transfers files security using SSH and encrypted FTP commands to avoid password sniffing and exposing sensitive information in plain text. Since the client needs to be authenticated by the server, SFTP also protects against man-in-the-middle attacks.
An SFTP server requires both communicating parties to authenticate themselves either by providing a user ID and password, or by validating an SSH key (or both). One half of the SSH key is stored on the computer of the two clients, while the other half is loaded on the server and associated with their account (public key). Only when the SSH key pair matches then authentication can occur.

How to connect SFTP with key file on filezilla?

Open your ubuntu software application and search for filezilla client. Then you can install filezilla client easily.

But if you found any issue with ubuntu software. Then you can also use the command line to install filezilla.

$ sudo apt update
$ sudo apt install filezilla

Follow the below steps to connect SFTP on the filezilla with key files.

  1. Open the filezilla, then click on the site manager.
  2. Click on the new site. Then go to the general tab (first tab) and select the SFTP protocol as the protocol.
  3. Next will be host, enter your host name.
  4. Select the Logon type as the key file.
  5. Enter the user name.
  6. Select the key file from the file explorer.

That’s it, click on the connect button. And it will connect successfully.

Required read/write permissions for key file

Have you got the key file permission error?

Key files (Pem or PPK) should have permissions like 400 or 600.

Still not connected or timeout error?

Are you still not able to connect with the server?

Sometimes you may need to whitelist your IP on the server, so try to do that.

Hope you find this article useful. 

See you in the next learning chapter.

Satpal

View Comments

Recent Posts

How to Switch PHP Versions in XAMPP Easily: Managing Multiple PHP Versions on Ubuntu

Today we are going to learn about managing multiple PHP versions on ubuntu with xampp.…

1 year ago

How to Use Coding to Improve Your Website’s SEO Ranking?

Let's understand about how to use coding to improve your website's SEO. In today’s computerized…

1 year ago

Most Important Linux Commands for Web Developers

Let's understand the most important linux commands for web developers. Linux, as an open-source and…

1 year ago

Top 75+ Laravel Interview Questions Asked by Top MNCs

Today we are going to discuss top 75+ Laravel interview questions asked by top MNCs.Laravel,…

1 year ago

Mailtrap Integration for Email Testing with Laravel 10

Today we will discuss about the Mailtrap integration with laravel 10 .Sending and receiving emails…

1 year ago

Firebase Cloud Messaging (FCM) with Ionic 6: Push Notifications

Today we are going to integrate FCM (Firebase Cloud Messaging) push notifications with ionic application.Firebase…

1 year ago