<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=keyed_login</id>
	<title>keyed login - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=keyed_login"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=keyed_login&amp;action=history"/>
	<updated>2026-10-24T06:41:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=keyed_login&amp;diff=24057&amp;oldid=prev</id>
		<title>Woozle: updated syntax highlight tags</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=keyed_login&amp;diff=24057&amp;oldid=prev"/>
		<updated>2018-07-20T01:01:11Z</updated>

		<summary type="html">&lt;p&gt;updated syntax highlight tags&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 01:01, 20 July 2018&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-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&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;** If the latter file &amp;#039;&amp;#039;does&amp;#039;&amp;#039; already exist, then id_rsa.pub can just be appended to authorized_keys.&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;** If the latter file &amp;#039;&amp;#039;does&amp;#039;&amp;#039; already exist, then id_rsa.pub can just be appended to authorized_keys.&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;** The following command should work for either case:&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;** The following command should work for either case:&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;*** &amp;lt;bash&amp;gt;cat .ssh/id_rsa.pub | ssh user@host &#039;cat &amp;gt;&amp;gt; .ssh/authorized_keys&#039;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bash&lt;/del&gt;&amp;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;*** &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang=&lt;/ins&gt;bash&amp;gt;cat .ssh/id_rsa.pub | ssh user@host &#039;cat &amp;gt;&amp;gt; .ssh/authorized_keys&#039;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&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;* It may be necessary to manually log on once to the client from the host (using the same usernames as above) in order to add the client to the host&amp;#039;s known_hosts file; I&amp;#039;m not sure about this part. Need to test.&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;* It may be necessary to manually log on once to the client from the host (using the same usernames as above) in order to add the client to the host&amp;#039;s known_hosts file; I&amp;#039;m not sure about this part. Need to test.&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;* Manually log on from the client to the host to make sure that the host is added to the client&amp;#039;s known_hosts file, otherwise the verification prompt may interrupt any processes trying to log on automatically.&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;* Manually log on from the client to the host to make sure that the host is added to the client&amp;#039;s known_hosts file, otherwise the verification prompt may interrupt any processes trying to log on automatically.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=keyed_login&amp;diff=22467&amp;oldid=prev</id>
		<title>Woozle: moved here from ssh page, because I keep looking for it...</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=keyed_login&amp;diff=22467&amp;oldid=prev"/>
		<updated>2017-04-06T13:29:48Z</updated>

		<summary type="html">&lt;p&gt;moved here from ssh page, because I keep looking for it...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==About==&lt;br /&gt;
With [[Linux]] and similar systems, it is possible to set up access from a client to a server in such a way that it is unnecessary to manually enter a password. This technique actually makes the server &amp;#039;&amp;#039;more&amp;#039;&amp;#039; secure, since you are using [[public key encryption]] which is kind of like using a much longer password but never actually transmitting it (and it&amp;#039;s all handled automatically).&lt;br /&gt;
&lt;br /&gt;
Once this has been set up, a number of commands including [[ssh]] and [[rsync]] can connect without a password. This is especially useful for scripts, since otherwise you would have to have the password in plaintext within the script or in some other plaintext file.&lt;br /&gt;
==How To==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;On the client&amp;#039;&amp;#039;&amp;#039;: Generate a public/private key pair using [[ssh-keygen]]&lt;br /&gt;
* Add the public key file (~/.ssh/id_rsa.pub) from the client to ~/.ssh/authorized_keys on the host.&lt;br /&gt;
** If the latter file doesn&amp;#039;t already exist, then it can just be a direct copy of id_rsa.pub.&lt;br /&gt;
** If the latter file &amp;#039;&amp;#039;does&amp;#039;&amp;#039; already exist, then id_rsa.pub can just be appended to authorized_keys.&lt;br /&gt;
** The following command should work for either case:&lt;br /&gt;
*** &amp;lt;bash&amp;gt;cat .ssh/id_rsa.pub | ssh user@host &amp;#039;cat &amp;gt;&amp;gt; .ssh/authorized_keys&amp;#039;&amp;lt;/bash&amp;gt;&lt;br /&gt;
* It may be necessary to manually log on once to the client from the host (using the same usernames as above) in order to add the client to the host&amp;#039;s known_hosts file; I&amp;#039;m not sure about this part. Need to test.&lt;br /&gt;
* Manually log on from the client to the host to make sure that the host is added to the client&amp;#039;s known_hosts file, otherwise the verification prompt may interrupt any processes trying to log on automatically.&lt;br /&gt;
* If you disable logins now (e.g. via [[Webmin]]&amp;#039;s &amp;quot;No login allowed&amp;quot; option), you will still be able to log in from a client with an authorized key.&lt;br /&gt;
&lt;br /&gt;
Specific commands for doing this may be found [http://linuxproblem.org/art_9.html here].&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>