<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pedromussato.com/index.php?action=history&amp;feed=atom&amp;title=Linux_Password_Less_Authentication_%28rsa_key_file%29</id>
	<title>Linux Password Less Authentication (rsa key file) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pedromussato.com/index.php?action=history&amp;feed=atom&amp;title=Linux_Password_Less_Authentication_%28rsa_key_file%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.pedromussato.com/index.php?title=Linux_Password_Less_Authentication_(rsa_key_file)&amp;action=history"/>
	<updated>2026-04-08T10:28:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.pedromussato.com/index.php?title=Linux_Password_Less_Authentication_(rsa_key_file)&amp;diff=178&amp;oldid=prev</id>
		<title>413vhcu1lq0463ob at 16:50, 7 November 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.pedromussato.com/index.php?title=Linux_Password_Less_Authentication_(rsa_key_file)&amp;diff=178&amp;oldid=prev"/>
		<updated>2024-11-07T16:50:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:50, 7 November 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== &#039;&#039;&#039;Generate the SSH &lt;/del&gt;key pair &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;on your local machine&#039;&#039;&#039; (the one you want to connect from): ===&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; # Create &lt;/ins&gt;key pair&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ssh-keygen -t rsa -b 4096 -f ~/.ssh/username&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ssh-keygen -t rsa -b 4096 -f ~/.ssh/username&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &amp;lt;code&amp;gt;-t rsa&amp;lt;/code&amp;gt;: Specifies &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RSA algorithm (you can also use &amp;lt;code&amp;gt;ed25519&amp;lt;/code&amp;gt; for better security).&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; # Add &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;public key to &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;`authorized_keys` file&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &amp;lt;code&amp;gt;-b 4096&amp;lt;/code&amp;gt;: Sets &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;key size (4096 bits for RSA).&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; cat &lt;/ins&gt;~/.ssh/username.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pub &lt;/ins&gt;&amp;gt;&amp;gt; ~/.ssh/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;authorized_keys&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &amp;lt;code&amp;gt;-f &lt;/del&gt;~/.ssh/username&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;: This option lets you set the filename and path for the key&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Here, it will save the private key as &amp;lt;code&lt;/del&gt;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;~/.ssh/username&amp;lt;/code&amp;gt; and the public key as &amp;lt;code&lt;/del&gt;&amp;gt;~/.ssh/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;username.pub&amp;lt;/code&amp;gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; chmod 700 &lt;/ins&gt;~/.ssh &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            # Set &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;directory permissions&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== &#039;&#039;&#039;Save the key files&#039;&#039;&#039;: ===&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;chmod 600 &lt;/ins&gt;~/.ssh/authorized_keys &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; # Set the file permissions&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* You’ll be prompted to choose a file location for the keys. Press &amp;lt;code&amp;gt;Enter&amp;lt;/code&amp;gt; to accept the default path (&amp;lt;code&amp;gt;&lt;/del&gt;~/.ssh&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/id_rsa&amp;lt;/code&amp;gt;).&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* You’ll then be asked to set a passphrase. Press &amp;lt;code&amp;gt;Enter&amp;lt;/code&amp;gt; if you want passwordless login; otherwise, enter a passphrase for extra security.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== you can manually copy &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;key: ===&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;scp &lt;/del&gt;~&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/.ssh/username.pub username@server_ip_address:/home/username&lt;/del&gt;/.ssh/authorized_keys&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>413vhcu1lq0463ob</name></author>
	</entry>
	<entry>
		<id>https://wiki.pedromussato.com/index.php?title=Linux_Password_Less_Authentication_(rsa_key_file)&amp;diff=177&amp;oldid=prev</id>
		<title>413vhcu1lq0463ob: Created page with &quot;=== &#039;&#039;&#039;Generate the SSH key pair on your local machine&#039;&#039;&#039; (the one you want to connect from): ===  ssh-keygen -t rsa -b 4096 -f ~/.ssh/username  * &lt;code&gt;-t rsa&lt;/code&gt;: Specifies the RSA algorithm (you can also use &lt;code&gt;ed25519&lt;/code&gt; for better security). * &lt;code&gt;-b 4096&lt;/code&gt;: Sets the key size (4096 bits for RSA). * &lt;code&gt;-f ~/.ssh/username&lt;/code&gt;: This option lets you set the filename and path for the key. Here, it will save the private key as &lt;code&gt;~/.ssh/username&lt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.pedromussato.com/index.php?title=Linux_Password_Less_Authentication_(rsa_key_file)&amp;diff=177&amp;oldid=prev"/>
		<updated>2024-11-07T16:03:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== &amp;#039;&amp;#039;&amp;#039;Generate the SSH key pair on your local machine&amp;#039;&amp;#039;&amp;#039; (the one you want to connect from): ===  ssh-keygen -t rsa -b 4096 -f ~/.ssh/username  * &amp;lt;code&amp;gt;-t rsa&amp;lt;/code&amp;gt;: Specifies the RSA algorithm (you can also use &amp;lt;code&amp;gt;ed25519&amp;lt;/code&amp;gt; for better security). * &amp;lt;code&amp;gt;-b 4096&amp;lt;/code&amp;gt;: Sets the key size (4096 bits for RSA). * &amp;lt;code&amp;gt;-f ~/.ssh/username&amp;lt;/code&amp;gt;: This option lets you set the filename and path for the key. Here, it will save the private key as &amp;lt;code&amp;gt;~/.ssh/username&amp;lt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== &amp;#039;&amp;#039;&amp;#039;Generate the SSH key pair on your local machine&amp;#039;&amp;#039;&amp;#039; (the one you want to connect from): ===&lt;br /&gt;
 ssh-keygen -t rsa -b 4096 -f ~/.ssh/username&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;-t rsa&amp;lt;/code&amp;gt;: Specifies the RSA algorithm (you can also use &amp;lt;code&amp;gt;ed25519&amp;lt;/code&amp;gt; for better security).&lt;br /&gt;
* &amp;lt;code&amp;gt;-b 4096&amp;lt;/code&amp;gt;: Sets the key size (4096 bits for RSA).&lt;br /&gt;
* &amp;lt;code&amp;gt;-f ~/.ssh/username&amp;lt;/code&amp;gt;: This option lets you set the filename and path for the key. Here, it will save the private key as &amp;lt;code&amp;gt;~/.ssh/username&amp;lt;/code&amp;gt; and the public key as &amp;lt;code&amp;gt;~/.ssh/username.pub&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;&amp;#039;Save the key files&amp;#039;&amp;#039;&amp;#039;: ===&lt;br /&gt;
&lt;br /&gt;
* You’ll be prompted to choose a file location for the keys. Press &amp;lt;code&amp;gt;Enter&amp;lt;/code&amp;gt; to accept the default path (&amp;lt;code&amp;gt;~/.ssh/id_rsa&amp;lt;/code&amp;gt;).&lt;br /&gt;
* You’ll then be asked to set a passphrase. Press &amp;lt;code&amp;gt;Enter&amp;lt;/code&amp;gt; if you want passwordless login; otherwise, enter a passphrase for extra security.&lt;br /&gt;
&lt;br /&gt;
=== you can manually copy the key: ===&lt;br /&gt;
 scp ~/.ssh/username.pub username@server_ip_address:/home/username/.ssh/authorized_keys&lt;/div&gt;</summary>
		<author><name>413vhcu1lq0463ob</name></author>
	</entry>
</feed>