Changes

no edit summary
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>
ssh-copy-id [email protected]
+
ssh-copy-id -i rsa_key.pub [email protected]
 
</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>
+
ssh -i rsa_key [email protected].1
 +
</pre></li>
 
----
 
----
 
<li>
 
<li>
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]]

Navigation menu