Line 9: |
Line 9: |
| To achieve the configuration described in this article you will need the following: | | To achieve the configuration described in this article you will need the following: |
| | | |
− | * A computer running on Linux | + | *A computer running on Linux |
− | * A RUTxxx router of any type | + | *A RUTxxx router of any type |
| | | |
| ==Configuration== | | ==Configuration== |
Line 29: |
Line 29: |
| </li> | | </li> |
| ---- | | ---- |
− | <li> | + | <li>'''NOTE: You only need to do this step once.''' The key will be added to the ''/root/.ssh/authorized_keys'' file. You must then move it to ''/etc/dropbear/'', and make a symlink from dropbear. To do so, login to the router via SSH and execute these commands: |
− | The key will be added to the ''/root/.ssh/authorized_keys'' file. You must then copy it to ''/etc/dropbear/''. To do so, login to the router via SSH and execute this command: | |
− | <pre>
| |
− | cp /root/.ssh/authorized_keys /etc/dropbear/
| |
− | </pre>
| |
− | </li>
| |
− | ----
| |
− | <li>
| |
− | Next, while still connected to the router, add ''read'', ''write'' and ''execute'' permissions for the ''/etc/dropbear'' directory and ''read'', ''write'' permissions for the ''/etc/dropbear/authorized_keys'' file:
| |
| <pre> | | <pre> |
− | chmod 700 /etc/dropbear
| + | mv /root/.ssh/authorized_keys /etc/dropbear/ |
− | chmod 600 /etc/dropbear/authorized_keys
| + | ln -s /etc/dropbear/authorized_keys /root/.ssh/authorized_keys |
| </pre> | | </pre> |
| </li> | | </li> |
Line 106: |
Line 98: |
| ==See also== | | ==See also== |
| | | |
− | * [[SSH RSA key authentication (Windows)]] - the same guide but aimed at Windows users | + | *[[SSH RSA key authentication (Windows)]] - the same guide but aimed at Windows users |
− | * [[Command line interfaces]] - descriptions and instruction for all types of command line interfaces supported by RUTxxx devices | + | *[[Command line interfaces]] - descriptions and instruction for all types of command line interfaces supported by RUTxxx devices |