Secure File Sharing on KDE Plasma: A Step-by-Step Guide

As a KDE Plasma user, you may be wondering how to securely share files between machines on your local network. In this article, we’ll cover the steps to install and configure OpenSSH, enable and start the systemctl service, and set up a firewall for secure file sharing using UFW, which comes pre-installed with CachyOS.

Installing and Configuring OpenSSH

To install OpenSSH on your CachyOS machine, open a terminal and run the following command:


Once installed, enable and start the OpenSSH service using the following commands:


You can check the status of the service using the following command:

Configuring UFW for Secure File Sharing

CachyOS comes with UFW (Uncomplicated Firewall) pre-installed, which makes it easy to configure a firewall for secure file sharing. To allow incoming SSH connections, run the following command:

You can also allow incoming connections on a specific port by running the following command:
sudo ufw allow 22/tcp

Accessing Remote Machines using Dolphin

To access a remote machine on your local network using Dolphin, follow these steps:

  1. Open Dolphin and navigate to the Network section.
  2. Click on the “Add Network Location” button.
  3. Enter the IP address of the remote machine in the format “sftp://10.0.0.122”.
  4. Enter your username and password in the pop-up window.
  5. Click “Connect” to access the remote machine’s home directory.

You can also create a permanent bookmark with the Network Folder Wizard and shown in the image below.

Dolphin file manager screenshot: accessing remote machines on KDE Plasma

Configuring Static IP Addresses on Your Router

To configure static IP addresses on your router, follow these steps:

  1. Log in to your router’s web interface using the admin credentials provided by your telecom company.
  2. Navigate to the “LAN Settings” or “Local Network” section.
  3. Assign a static IP address to each device on your network.
  4. Save the changes and reboot your router.
  5. Using a Switch for a Cleaner and More Efficient Network

If you don’t know your router’s admin login credentials, don’t worry! Simply pick up your router and look for a sticker attached to the bottom. This sticker usually contains both the username and password. Use these credentials to log in to your router’s web interface.

Using a Switch for a Cleaner and More Efficient Network

Instead of running multiple cables from your office to the modem, consider using a switch to reduce the number of cables needed. This will make your network look cleaner as the cabling gets reduced to just one network cable.

Wired Connections vs. WIFI

While WIFI is convenient, wired connections offer better performance and saturation of the bandwidth. If possible, use wired connections for your devices.

Conclusion

Secure file sharing between Linux machines is quick and easy to set up. By following these steps, you can configure OpenSSH, UFW, and Dolphin to access remote machines on your local network. Remember to configure static IP addresses on your router and use a switch for a cleaner and more efficient network. Although this article uses CachyOS as an example, the concept applies to all Linux distributions.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.