<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Ssh%3A_automatic_login_%28en%29</id>
	<title>Ssh: automatic login (en) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Ssh%3A_automatic_login_%28en%29"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Ssh:_automatic_login_(en)&amp;action=history"/>
	<updated>2026-04-20T15:19:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Ssh:_automatic_login_(en)&amp;diff=71807&amp;oldid=prev</id>
		<title>Unknown user: Created page with &quot;Source: http://wp.uberdose.com/2006/10/16/ssh-automatic-login/  * public ssh key, check if the file id_dsa.pub exists   ~/.ssh  * if id_dsa.pub does not exist in ~/.ssh, execu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Ssh:_automatic_login_(en)&amp;diff=71807&amp;oldid=prev"/>
		<updated>2025-01-07T02:05:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Source: http://wp.uberdose.com/2006/10/16/ssh-automatic-login/  * public ssh key, check if the file id_dsa.pub exists   ~/.ssh  * if id_dsa.pub does not exist in ~/.ssh, execu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Source: http://wp.uberdose.com/2006/10/16/ssh-automatic-login/&lt;br /&gt;
&lt;br /&gt;
* public ssh key, check if the file id_dsa.pub exists&lt;br /&gt;
&lt;br /&gt;
 ~/.ssh&lt;br /&gt;
&lt;br /&gt;
* if id_dsa.pub does not exist in ~/.ssh, execute&lt;br /&gt;
&lt;br /&gt;
 chmod 700 ~/.ssh&lt;br /&gt;
 ssh-keygen -t dsa&lt;br /&gt;
 ssh-keygen -t rsa&lt;br /&gt;
&lt;br /&gt;
* copy to the remote server&lt;br /&gt;
&lt;br /&gt;
 scp ~/.ssh/id_dsa.pub remoteuser@remoteserver.com:&lt;br /&gt;
 scp ~/.ssh/id_rsa.pub remoteuser@remoteserver.com:&lt;br /&gt;
&lt;br /&gt;
* on the remote server, append the content of the public key id_dsa.pub to ~/.ssh/authorized_keys and delete the file id_dsa.pub&lt;br /&gt;
&lt;br /&gt;
 mkdir .ssh&lt;br /&gt;
 touch .ssh/authorized_keys&lt;br /&gt;
 cat id_dsa.pub &amp;gt;&amp;gt; .ssh/authorized_keys&lt;br /&gt;
 cat id_rsa.pub &amp;gt;&amp;gt; .ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
Or simultaneously perform with the method&lt;br /&gt;
&lt;br /&gt;
 ssh -l remoteuser remoteserver.com &amp;#039;mkdir .ssh&amp;#039;&lt;br /&gt;
 ssh -l remoteuser remoteserver.com &amp;#039;touch ~/.ssh/authorized_keys&amp;#039;&lt;br /&gt;
 cat ~/.ssh/id_dsa.pub | ssh -l remoteuser remoteserver.com &amp;#039;cat &amp;gt;&amp;gt; ~/.ssh/authorized_keys&amp;#039;&lt;br /&gt;
&lt;br /&gt;
do not forget to delete id_dsa.pub from the home directory on the remote server&lt;br /&gt;
&lt;br /&gt;
afterward, we can log in without being asked for a password&lt;br /&gt;
&lt;br /&gt;
 ssh -l remoteuser remoteserver.com&lt;br /&gt;
 ssh remoteuser@remoteserver.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Other Alternatives==&lt;br /&gt;
&lt;br /&gt;
The whole process is much easier if you just use:&lt;br /&gt;
&lt;br /&gt;
 ssh-copy-id [-i [identity_file]] [user@]machine&lt;br /&gt;
&lt;br /&gt;
 ssh-keygen -t dsa&lt;br /&gt;
 ssh-keygen -t rsa&lt;br /&gt;
 ssh-copy-id user@machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
* http://wp.uberdose.com/2006/10/16/ssh-automatic-login/&lt;br /&gt;
&lt;br /&gt;
==Interesting Links==&lt;br /&gt;
&lt;br /&gt;
* [[ssh]]&lt;br /&gt;
* [[ssh - executing commands remotely]]&lt;br /&gt;
* [[SSH Preparation for SCP Batch]]&lt;/div&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
</feed>