Introduction
In this article, we will guide you through the process of installing the OpenSSH-SFTP server on OpenWRT 22.03.0-rc6 for the iNet GL-MT300N v2 model with the mipsel\_24kc ramipsmt76x8 GL.iNet GL-MT300N v2... package architecture. We will cover the key concepts related to the installation process and provide detailed instructions to help you get started.
Installing OpenSSH-SFTP Server
To install the OpenSSH-SFTP server on OpenWRT 22.03.0-rc6, follow these steps:
- Connect to your OpenWRT device via SSH or Telnet.
- Upgrade the package list by running the following command:
opkg update- Install the OpenSSH-SFTP server package by running the following command:
opkg install openssh-sftp-serverConfiguring the OpenSSH-SFTP Server
After installing the OpenSSH-SFTP server, you need to configure it. Here's how:
- Edit the SSH daemon configuration file by running the following command:
/etc/ssh/sshd_config- Find the line that starts with
#AuthorizedKeysFileand uncomment it by removing the#symbol. - Change the value of the
AuthorizedKeysFileparameter to.ssh/authorized_keys. - Find the line that starts with
#PermitRootLoginand uncomment it by removing the#symbol. - Change the value of the
PermitRootLoginparameter toyes. - Save the changes and exit the editor.
- Restart the SSH daemon by running the following command:
/etc/init.d/ssh restartTesting the OpenSSH-SFTP Server
To test the OpenSSH-SFTP server, follow these steps:
- Connect to your OpenWRT device via SFTP using a client such as FileZilla or Cyberduck.
- Enter your username and password when prompted.
- If you can successfully connect and transfer files, then the OpenSSH-SFTP server is working correctly.
In this article, we have covered the process of installing and configuring the OpenSSH-SFTP server on OpenWRT 22.03.0-rc6 for the iNet GL-MT300N v2 model with the mipsel\_24kc ramipsmt76x8 GL.iNet GL-MT300N v2... package architecture. By following the steps outlined in this article, you should be able to set up a functional OpenSSH-SFTP server on your OpenWRT device.