MENU
Language

How to log in to XServerVPS using FileZilla

FileZilla is a free, open-source FTP client that supports SFTP (SSH File Transfer Protocol). SFTP allows you to transfer files securely over SSH. Below are the steps to set up an SFTP connection using FileZilla.

目次

1. Install FileZilla

First, download and install FileZilla from the official website.

External: FileZilla official website
https://filezilla-project.org/

Related reading

FileZilla – The free FTP solutionFileZilla – The free FTP solution for both client and server. Filezilla is open source software distributed free of charge.

2. Server-side configuration

To connect via SFTP, SSH must be enabled on the server. For example, if you’re using Xserver, log in to the server panel and turn on “SSH Settings.” If you’re using public key authentication, you’ll also need to register the public key on the server.

Add packet filter settings :

VPS Panel > Server > Packet Filter Settings

Log in to the VPS panel and select “Packet Filter Settings.”
Set the packet filter setting to ON.

Click the “Add packet filter setting” button and select “SSH” as the filter to add.

Generate and download an SSH key :

Select “SSH Key” from the sidebar of the VPS management screen and click the “Register SSH Key” button. Specify a file name and select “Auto-generate” as the registration method. Then click the “Download” button that appears to download the private key (XXX.pem file).

The public key is set on the Xserver VPS side.

Check for server restart

Depending on your Xserver configuration, you may need to restart the SSH service on your server after adding the public key. Try restarting the SSH service, or if possible, restarting the server itself.

Place the private key and set permissions on your local machine :

Move the downloaded private key .sshto a directory on your local machine and set the appropriate permissions (600).

Execute SSH connection :

Run the following command in your terminal to connect to your VPS server:ssh -i ~/.ssh/秘密鍵ファイル名 root@サーバーのIPアドレス

Verify that you can successfully log in to the VPS server via the terminal.

3. Setting up with FileZilla

Register your private key :

Start FileZilla and select “Preferences” from the “Edit” menu.

Select “SFTP” from the menu on the left and click “Add Key File.”

Select the private key file (XXX.pem file) you prepared earlier. If the format is not supported by FileZilla, a message will appear prompting you to convert it. Click “Yes” to convert it.

Supplement: How to view local key files stored in hidden folders:

For Windows:
Change

File Explorer settings: Open File Explorer.
Click the “View” tab in the menu.
Check “Hidden files” in the “Show/hide” section.

For Mac:
Change Finder settings

: Open Finder.
Press Command + Shift + . on your keyboard.

Site Settings :

From the File menu, select Site Manager.

Click “New Site” and enter the following information.
The information to enter can be found in XServerVPS > VPS Management > VPS Panel > VPS Information.

Protocol : SFTP – SSH File Transfer Protocol

Host : The standard host name of the server (e.g. xxx-xxx-xxx-xxx.static.xvps.ne.jp)

Port : The port number specified by the server (e.g., 22)

Logon Type : Key File

User : Your server username (e.g., root)

Key file : Select the registered private key file

Once the settings are complete, click Connect.

5. Check the connection

The first time you connect, you will be prompted to trust the server’s host key. Check “Always trust this host and add this key to my cache” and click “OK.” This will establish an SFTP connection using FileZilla.

Points to note

  • Depending on the server, the SSH port number may be changed from the default 22.
  • If your private key is in a format that FileZilla does not support, you will need to convert it to the PuTTY format (.ppk).

By following these steps, you will be able to use FileZilla to securely connect to SFTP and transfer files.

termInfrastructure terminology

Let's share this post !

Author of this article

AIアーティスト | エンジニア | ライター | 最新のAI技術やトレンド、注目のモデル解説、そして実践に役立つ豊富なリソースまで、幅広い内容を記事にしています。フォローしてねヾ(^^)ノ

Comments

To comment

目次