Connecting to AWS Lightsail using FileZilla (SFTP)

WorldGoIT
3 min readJul 23, 2023

--

Connecting to AWS Lightsail using FileZilla (SFTP)

AWS Lightsail is a service of Amazon Web Services that provides a Virtual Private Server (VPS). FileZilla is a *FTP (File Transfer Protocol) client, used for file transfers with remote servers. To connect to your AWS Lightsail instance using FileZilla, follow these steps :

*What is FTP (File Transfer Protocol)?

FTP stands for “File Transfer Protocol” FTP is a standard protocol for transferring files over computer networks and defines a communication method for transferring files between a client and a server.

FTP works based on a client-server model. Clients use FTP client software to connect to the server, and the server uses FTP server software to handle requests from clients. This allows files to be uploaded ( sent to the server ) or downloaded ( retrieved from the server).

FTP is used to transfer files over a network and is commonly used for a variety of purposes, such as uploading and downloading files from websites, distributing software patches, and sharing files between servers. FTP operates based on the TCP/IP protocol, and encryption technologies such as SSL/TLS can be used for security.

FTP typically uses a Command and Data connection. The command connection is responsible for passing control and commands between the client and server, while the data connection is used for the transfer of actual file data. The client uses FTP client software to manage files and directories, and the server transfers files or performs related tasks at the request of the client.

FTP is widely used as a standard protocol for simple and efficient file transfer, but for security reasons, other protocols that provide security features such as SFTP (Secure File Transfer Protocol) or FTPS (FTP over SSL) are more popular do.

Preliminaries

filezilla download

- Download FileZilla client for Windows

- Download the FileZilla client for Mac OS X

- Download FileZilla client for Linux

Get your instance’s SSH key

lightsail wordpress

1. After logging in to Lightsail, click the Account button at the top

2. Click SSH Keys in the middle of the screen menu

3. Download the SSH key by clicking the SSH Key download button for the region where the instance is currently connected at the bottom.

Configure FileZila and connect to your instance

1. Open Filezilla and select File — Site Manager

2. Click New Site and enter the screen on the right

protocol

Choose SFTP

host

For Host, enter a static IP for Public IP.

port

22

Logon Type and Key File

Select the SSH Key downloaded above

user

- Amazon Linux, Amazon Linux 2, FreeBSD, and openSUSE instances: ec2-user

- CentOS instance: centos

- Debian instance: admin

- Ubuntu instance: ubuntu

- Bitnami instance: bitnami

- Plesk instance: ubuntu

- cPanel & WHM instances: centos

filezilla

When connected to an AWS Lightsail instance via FileZilla, you can access the instance’s file system and transfer files.

official document

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-connecting-to-linux-unix-instance-using-sftp

--

--