<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Redhat%3Assh_setup_keys</id>
	<title>Redhat:ssh setup keys - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Redhat%3Assh_setup_keys"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Redhat:ssh_setup_keys&amp;action=history"/>
	<updated>2026-05-04T20:16:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Redhat:ssh_setup_keys&amp;diff=3430&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;==  Pubic / Private Key Pair ==  A public / Private key pair can be used for athentication for accessing a remote system.  The private key is kept by the user.  The public key...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Redhat:ssh_setup_keys&amp;diff=3430&amp;oldid=prev"/>
		<updated>2013-08-27T08:40:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==  Pubic / Private Key Pair ==  A public / Private key pair can be used for athentication for accessing a remote system.  The private key is kept by the user.  The public key...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==  Pubic / Private Key Pair ==&lt;br /&gt;
&lt;br /&gt;
A public / Private key pair can be used for athentication for accessing a remote system.  The private key is kept by the user.  The public key s copied to remote systems that are to be accessed through ssh.  &lt;br /&gt;
&lt;br /&gt;
When a user accesses the system though ssh the system checks for the matching public key.  If it is found the system grants access without asking for a password.&lt;br /&gt;
&lt;br /&gt;
The private key must be secure, as with it a cracker could access the system without authorized access&lt;br /&gt;
&lt;br /&gt;
== Create a key pair ==&lt;br /&gt;
&lt;br /&gt;
To create a key pair use the ssh-keygen command.  This will ask where to store the keys,  to enter an optional password and warn you if you are about to overwrite an existing key.&lt;br /&gt;
&lt;br /&gt;
It allows you to create two types of keys: RSA and DSA.  An RSA key also has the option top set the number of bits used for the key.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
ssh-keygen -t rsa #Create an RSA key &lt;br /&gt;
ssh-keygen -t rsa -b 8192 #Create an RSA key with 8192 bits&lt;br /&gt;
ssh-keygen -t dsa #Create a DSA key &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Created directory &amp;#039;/home/michael2/.ssh&amp;#039;.&lt;br /&gt;
Your identification has been saved in /home/michael2/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /home/michael2/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
5c:28:7d:6d:7f:9c:61:f1:d8:17:19:40:aa:4b:8b:cf michael2@head&lt;br /&gt;
The key&amp;#039;s randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|            .o.+o|&lt;br /&gt;
|       . . ..  ++|&lt;br /&gt;
|      . o o.o .o+|&lt;br /&gt;
|       o o.. ...+|&lt;br /&gt;
|        So    ..o|&lt;br /&gt;
|        o o    . |&lt;br /&gt;
|       . o       |&lt;br /&gt;
|        o        |&lt;br /&gt;
|         E       |&lt;br /&gt;
+-----------------+&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Copy to key to a remote system ==&lt;br /&gt;
&lt;br /&gt;
The public key created can either be manually copied to the remote system.  This is a more secure method of doing so as it is not transmitted over the network.&lt;br /&gt;
&lt;br /&gt;
The ssh-copy-id command can also be used:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
ssh-copy-id -i .ssh/id_rsa.pub michael@head.boston.co.uk&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>