Line 19: |
Line 19: |
| <pre> | | <pre> |
| ssh-keygen | | ssh-keygen |
− | </pre> | + | </pre>When prompted, enter the file name, for example '''rsa_key'''. Two file will then be generated: '''rsa_key''' (private) and '''rsa_key.pub''' (public). |
| </li> | | </li> |
| ---- | | ---- |
Line 25: |
Line 25: |
| Next, we'll have to add the key to your RUTxxx router. Simply execute this command via a Terminal (replace the IP address with your router's IP): | | Next, we'll have to add the key to your RUTxxx router. Simply execute this command via a Terminal (replace the IP address with your router's IP): |
| <pre> | | <pre> |
− | | + | |
| </pre> | | </pre> |
| </li> | | </li> |
Line 45: |
Line 45: |
| ---- | | ---- |
| <li> | | <li> |
− | At this point, the configuration is complete. To test it, terminate your current SSH connection (you can do so by executing the ''exit'' command) and try logging in again - if everything is in order, the router should no longer require a password when connecting via SSH. | + | At this point, the configuration is complete. To test it, terminate your current SSH connection (you can do so by executing the ''exit'' command) and try logging in again - if everything is in order, the router should no longer require a password when connecting via SSH when using the command:<pre> |
− | </li> | + | |
| + | </pre></li> |
| ---- | | ---- |
| <li> | | <li> |
Line 72: |
Line 73: |
| <pre> | | <pre> |
| uci set dropbear.@dropbear[0].PasswordAuth=off | | uci set dropbear.@dropbear[0].PasswordAuth=off |
− | uci commit dropbear | + | uci commit |
| /etc/init.d/dropbear restart | | /etc/init.d/dropbear restart |
| </pre> | | </pre> |
Line 81: |
Line 82: |
| <pre> | | <pre> |
| uci set dropbear.@dropbear[0].RootPasswordAuth=off | | uci set dropbear.@dropbear[0].RootPasswordAuth=off |
− | uci commit dropbear | + | uci commit |
| /etc/init.d/dropbear restart | | /etc/init.d/dropbear restart |
| </pre> | | </pre> |
Line 96: |
Line 97: |
| <pre> | | <pre> |
| uci set dropbear.@dropbear[0].PasswordAuth=on #### use uci set dropbear.@dropbear[0].RootPasswordAuth=on instead if you had only disabled password authentication for root | | uci set dropbear.@dropbear[0].PasswordAuth=on #### use uci set dropbear.@dropbear[0].RootPasswordAuth=on instead if you had only disabled password authentication for root |
− | uci commit dropbear | + | uci commit |
| /etc/init.d/dropbear restart | | /etc/init.d/dropbear restart |
| </pre> | | </pre> |
Line 108: |
Line 109: |
| * [[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 |
| + | |
| + | [[Category:Router control and monitoring]] |