<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://wiki.slacam.com.br/index.php?action=history&amp;feed=atom&amp;title=SSH_sem_password</id>
	<title>SSH sem password - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.slacam.com.br/index.php?action=history&amp;feed=atom&amp;title=SSH_sem_password"/>
	<link rel="alternate" type="text/html" href="https://wiki.slacam.com.br/index.php?title=SSH_sem_password&amp;action=history"/>
	<updated>2026-11-17T00:50:01Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.slacam.com.br/index.php?title=SSH_sem_password&amp;diff=642&amp;oldid=prev</id>
		<title>Felipe em 21h00min de 18 de dezembro de 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.slacam.com.br/index.php?title=SSH_sem_password&amp;diff=642&amp;oldid=prev"/>
		<updated>2013-12-18T21:00:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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;pt-BR&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Edição das 21h00min de 18 de dezembro de 2013&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;Linha 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;&amp;lt;ads media=goo5/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;3 Steps to Perform SSH Login Without Password Using ssh-keygen &amp;amp; ssh-copy-id&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;3 Steps to Perform SSH Login Without Password Using ssh-keygen &amp;amp; ssh-copy-id&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;by RAMESH NATARAJAN on NOVEMBER 20, 2008&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;by RAMESH NATARAJAN on NOVEMBER 20, 2008&lt;/div&gt;&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-l86&quot; &gt;Linha 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 87:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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 agent has no identities: When the ssh-agent is running and the ssh-add -L returns “The agent has no identities” (i.e no keys are added to the ssh-agent), the ssh-copy-id will still copy the message “The agent has no identities” to the remote-host’s authorized_keys entry.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 agent has no identities: When the ssh-agent is running and the ssh-add -L returns “The agent has no identities” (i.e no keys are added to the ssh-agent), the ssh-copy-id will still copy the message “The agent has no identities” to the remote-host’s authorized_keys entry.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;Duplicate entry in authorized_keys: I wish ssh-copy-id validates duplicate entry on the remote-host’s authorized_keys. If you execute ssh-copy-id multiple times on the local-host, it will keep appending the same key on the remote-host’s authorized_keys file without checking for duplicates. Even with duplicate entries everything works as expected. But, I would like to have my authorized_keys file clutter free.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;Duplicate entry in authorized_keys: I wish ssh-copy-id validates duplicate entry on the remote-host’s authorized_keys. If you execute ssh-copy-id multiple times on the local-host, it will keep appending the same key on the remote-host’s authorized_keys file without checking for duplicates. Even with duplicate entries everything works as expected. But, I would like to have my authorized_keys file clutter free.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;&amp;lt;ads media=goo3/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Felipe</name></author>
	</entry>
	<entry>
		<id>https://wiki.slacam.com.br/index.php?title=SSH_sem_password&amp;diff=375&amp;oldid=prev</id>
		<title>Machado: Criou página com &#039;3 Steps to Perform SSH Login Without Password Using ssh-keygen &amp; ssh-copy-id by RAMESH NATARAJAN on NOVEMBER 20, 2008    You can login to a remote Linux server without entering p…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.slacam.com.br/index.php?title=SSH_sem_password&amp;diff=375&amp;oldid=prev"/>
		<updated>2012-11-08T01:21:16Z</updated>

		<summary type="html">&lt;p&gt;Criou página com &amp;#039;3 Steps to Perform SSH Login Without Password Using ssh-keygen &amp;amp; ssh-copy-id by RAMESH NATARAJAN on NOVEMBER 20, 2008    You can login to a remote Linux server without entering p…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;3 Steps to Perform SSH Login Without Password Using ssh-keygen &amp;amp; ssh-copy-id&lt;br /&gt;
by RAMESH NATARAJAN on NOVEMBER 20, 2008&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
You can login to a remote Linux server without entering password in 3 simple steps using ssky-keygen and ssh-copy-id as explained in this article.&lt;br /&gt;
&lt;br /&gt;
ssh-keygen creates the public and private keys. ssh-copy-id copies the local-host’s public key to the remote-host’s authorized_keys file. ssh-copy-id also assigns proper permission to the remote-host’s home,  ~/.ssh, and ~/.ssh/authorized_keys.&lt;br /&gt;
&lt;br /&gt;
This article also explains 3 minor annoyances of using ssh-copy-id and how to use ssh-copy-id along with ssh-agent.&lt;br /&gt;
&lt;br /&gt;
Step 1: Create public and private keys using ssh-key-gen on local-host&lt;br /&gt;
&lt;br /&gt;
 jsmith@local-host$ [Note: You are on local-host here]&lt;br /&gt;
&lt;br /&gt;
 jsmith@local-host$ ssh-keygen&lt;br /&gt;
 Generating public/private rsa key pair.&lt;br /&gt;
 Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key]&lt;br /&gt;
 Enter passphrase (empty for no passphrase): [Press enter key]&lt;br /&gt;
 Enter same passphrase again: [Pess enter key]&lt;br /&gt;
 Your identification has been saved in /home/jsmith/.ssh/id_rsa.&lt;br /&gt;
 Your public key has been saved in /home/jsmith/.ssh/id_rsa.pub.&lt;br /&gt;
 The key fingerprint is:&lt;br /&gt;
 33:b3:fe:af:95:95:18:11:31:d5:de:96:2f:f2:35:f9 jsmith@local-host&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Step 2: Copy the public key to remote-host using ssh-copy-id&lt;br /&gt;
&lt;br /&gt;
 jsmith@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host&lt;br /&gt;
 jsmith@remote-host&amp;#039;s password:&lt;br /&gt;
&lt;br /&gt;
Now try logging into the machine, with &amp;quot;ssh &amp;#039;remote-host&amp;#039;&amp;quot;, and check in:&lt;br /&gt;
&lt;br /&gt;
.ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
to make sure we haven&amp;#039;t added extra keys that you weren&amp;#039;t expecting.&lt;br /&gt;
Note: ssh-copy-id appends the keys to the remote-host’s .ssh/authorized_key.&lt;br /&gt;
&lt;br /&gt;
Step 3: Login to remote-host without entering the password&lt;br /&gt;
&lt;br /&gt;
 jsmith@local-host$ ssh remote-host&lt;br /&gt;
 Last login: Sun Nov 16 17:22:33 2008 from 192.168.1.2&lt;br /&gt;
&lt;br /&gt;
[Note: SSH did not ask for password.]&lt;br /&gt;
&lt;br /&gt;
 jsmith@remote-host$ [Note: You are on remote-host here]&lt;br /&gt;
&lt;br /&gt;
The above 3 simple steps should get the job done in most cases.&lt;br /&gt;
&lt;br /&gt;
We also discussed earlier in detail about performing SSH and SCP from openSSH to openSSH without entering password.&lt;br /&gt;
&lt;br /&gt;
If you are using SSH2, we discussed earlier about performing SSH and SCP without password from SSH2 to SSH2 , from OpenSSH to SSH2 and from SSH2 to OpenSSH.&lt;br /&gt;
&lt;br /&gt;
Using ssh-copy-id along with the ssh-add/ssh-agent&lt;br /&gt;
&lt;br /&gt;
When no value is passed for the option -i and If ~/.ssh/identity.pub is not available, ssh-copy-id will display the following error message.&lt;br /&gt;
&lt;br /&gt;
 jsmith@local-host$ ssh-copy-id -i remote-host&lt;br /&gt;
 /usr/bin/ssh-copy-id: ERROR: No identities found&lt;br /&gt;
&lt;br /&gt;
If you have loaded keys to the ssh-agent using the ssh-add, then ssh-copy-id will get the keys from the ssh-agent to copy to the remote-host. i.e, it copies the keys provided by ssh-add -L command to the remote-host, when you don’t pass option -i to the ssh-copy-id.&lt;br /&gt;
&lt;br /&gt;
 jsmith@local-host$ ssh-agent $SHELL&lt;br /&gt;
&lt;br /&gt;
 jsmith@local-host$ ssh-add -L&lt;br /&gt;
 The agent has no identities.&lt;br /&gt;
&lt;br /&gt;
 jsmith@local-host$ ssh-add&lt;br /&gt;
 Identity added: /home/jsmith/.ssh/id_rsa (/home/jsmith/.ssh/id_rsa)&lt;br /&gt;
&lt;br /&gt;
 jsmith@local-host$ ssh-add -L&lt;br /&gt;
 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsJIEILxftj8aSxMa3d8t6JvM79DyBV&lt;br /&gt;
 aHrtPhTYpq7kIEMUNzApnyxsHpH1tQ/Ow== /home/jsmith/.ssh/id_rsa&lt;br /&gt;
&lt;br /&gt;
 jsmith@local-host$ ssh-copy-id -i remote-host&lt;br /&gt;
 jsmith@remote-host&amp;#039;s password:&lt;br /&gt;
 Now try logging into the machine, with &amp;quot;ssh &amp;#039;remote-host&amp;#039;&amp;quot;, and check in:&lt;br /&gt;
 .ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
to make sure we haven&amp;#039;t added extra keys that you weren&amp;#039;t expecting.&lt;br /&gt;
[Note: This has added the key displayed by ssh-add -L]&lt;br /&gt;
Three Minor Annoyances of ssh-copy-id&lt;br /&gt;
&lt;br /&gt;
Following are few minor annoyances of the ssh-copy-id.&lt;br /&gt;
&lt;br /&gt;
Default public key: ssh-copy-id uses ~/.ssh/identity.pub as the default public key file (i.e when no value is passed to option -i). Instead, I wish it uses id_dsa.pub, or id_rsa.pub, or identity.pub as default keys. i.e If any one of them exist, it should copy that to the remote-host. If two or three of them exist, it should copy identity.pub as default.&lt;br /&gt;
The agent has no identities: When the ssh-agent is running and the ssh-add -L returns “The agent has no identities” (i.e no keys are added to the ssh-agent), the ssh-copy-id will still copy the message “The agent has no identities” to the remote-host’s authorized_keys entry.&lt;br /&gt;
Duplicate entry in authorized_keys: I wish ssh-copy-id validates duplicate entry on the remote-host’s authorized_keys. If you execute ssh-copy-id multiple times on the local-host, it will keep appending the same key on the remote-host’s authorized_keys file without checking for duplicates. Even with duplicate entries everything works as expected. But, I would like to have my authorized_keys file clutter free.&lt;/div&gt;</summary>
		<author><name>Machado</name></author>
	</entry>
</feed>