11
2024
08
20:29:18

How to Access and Manage Files on Your Linux PC Wirelessly Using FTP.

image depicting a <a href=linux ftp server" data-src="https://hqyman.cn/zb_users/upload/2024/08/20240811202929_36871." class=" lazyloaded" width="800" height="450" style="box-sizing: border-box; vertical-align: middle; border-style: none; display: block; width: 710px; max-width: 100%; height: auto; color: rgb(33, 37, 41); font-family: poppins, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);"/>

In this article, I will guide you through the process of accessing and managing files on your Linux PC wirelessly using FTP (File Transfer Protocol). We will be utilizing vsftpd, a secure, lightweight, and powerful FTP CLI software, to set up an FTP server on your machine for easy access.

Setting Up vsftpd

  1. Installation: Open your terminal and run the command sudo apt install vsftpd to install vsftpd on your Linux PC.

  2. Configuration: After the installation is complete, you will need to make changes to the vsftpd config file. Execute the following commands in your terminal:

    • sudo open /etc

    • Locate vsftpd.config and open it with your preferred text editor.

  3. Configuration Rules: Most of the configuration rules are disabled by default. To simplify the process, you can save the default config by appending it with the .old extension or clear everything and paste the following config rules:

   * `listen=YES`
   * `anonymous_enable=NO`
   * `local_enable=YES`
   * `write_enable=YES`
   * `local_umask=022`
   * `dirmessage_enable=YES`
   * `use_localtime=YES`
   * `xferlog_enable=YES`
   * `connect_from_port_20=YES`
   * `chroot_local_user=YES`
   * `secure_chroot_dir=/var/run/vsftpd/empty`
   * `pam_service_name=vsftpd`
   * `allow_writeable_chroot=YES`
   * `local_root=/home/your_username/`
  1. Activation: Save the configuration file and run the command sudo systemctl restart vsftpd to activate the vsftpd server.

Connecting to the FTP Server

  1. Network Setup: Connect your PC and the device you want to access your computer with to the same wireless network (Wi-Fi is recommended).

  2. Retrieve IP Address: Run the command ifconfig to obtain your inet IP address.

  3. FTP Client Setup: Open your preferred FTP client and select "Add a new server." Input your IP address as the server address and your PC username and password in their respective input fields.

  4. Accessing Files: After inputting all the necessary information, click "OK" to access all the files located at the specified local directory in your vsftpd config file.

Shutting Down the vsftpd Server

To turn off your vsftpd server, simply open your terminal and run the command

`sudo service vsftpd stop`

. This will end all access to your PC via the vsftpd client.

That's all for today! Thank you for reading and watching. Make sure to like and subscribe for more amazing content coming soon.




推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

本文链接:https://hqyman.cn/post/7507.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏





休息一下~~


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

请先 登录 再评论,若不是会员请先 注册

您的IP地址是: