<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https:///index.php?action=history&amp;feed=atom&amp;title=Ssh_keypair</id>
	<title>Ssh keypair - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https:///index.php?action=history&amp;feed=atom&amp;title=Ssh_keypair"/>
	<link rel="alternate" type="text/html" href=""/>
	<updated>2026-04-07T09:40:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id></id>
		<title>Gr0x0rd: Created page with &quot;= Setting up an ssh keypair from a linux system = If you haven&#039;t already, create a keypair.  $ ssh-keygen -t rsa Enter a password for the private key. Store the key in your pa...&quot;</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2023-02-03T06:07:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Setting up an ssh keypair from a linux system = If you haven&amp;#039;t already, create a keypair.  $ ssh-keygen -t rsa Enter a password for the private key. Store the key in your pa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Setting up an ssh keypair from a linux system =&lt;br /&gt;
If you haven&amp;#039;t already, create a keypair.&lt;br /&gt;
 $ ssh-keygen -t rsa&lt;br /&gt;
Enter a password for the private key. Store the key in your password vault. If you go with defaults, the filename created for your public key will be &amp;#039;&amp;#039;&amp;#039;id_rsa.pub&amp;#039;&amp;#039;&amp;#039; and will be located in your &amp;#039;&amp;#039;&amp;#039;.ssh&amp;#039;&amp;#039;&amp;#039; folder. Next, copy your public key to the destination system.&lt;br /&gt;
 $ scp -P &amp;lt;port&amp;gt; ~/.ssh/id_rsa.pub username@&amp;lt;ip address&amp;gt;:&lt;br /&gt;
Log into the destination system.&lt;br /&gt;
 $ ssh -p &amp;lt;port&amp;gt; username@&amp;lt;ip address&amp;gt;&lt;br /&gt;
If needed, create a hidden directory to store ssh data and create an authorized keys file.&lt;br /&gt;
 $ mkdir -p ~/.ssh &amp;amp;&amp;amp; touch ~/.ssh/authorized_keys&lt;br /&gt;
Add your public key to the authorized keys file.&lt;br /&gt;
 $ cat ~/id_rsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys&lt;br /&gt;
If desired, confirm that your key was successfully entered into the file.&lt;br /&gt;
 $ more ~/.ssh/authorized_keys&lt;br /&gt;
If desired, remove the public key file.&lt;br /&gt;
 $ rm ~/id_rsa.pub&lt;br /&gt;
Log out of the system. Try logging in again; you should be prompted to enter the password you set for the key in the first step.&lt;br /&gt;
 $ ssh -p &amp;lt;port&amp;gt; username@&amp;lt;ip address&amp;gt;&lt;br /&gt;
Once confirmed, log out of the system. If desired, create a file to make future logins easier:&lt;br /&gt;
 $ sudo nano /usr/local/bin/&amp;lt;desired name&amp;gt;&lt;br /&gt;
Paste the command you used in the above step and save the file. Set it as executable&lt;br /&gt;
 $ sudo chmod +x /usr/local/bin/&amp;lt;desired name&amp;gt;&lt;br /&gt;
You can now log into the remote system simply by executing&lt;br /&gt;
 $ &amp;lt;desired name&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gr0x0rd</name></author>
	</entry>
</feed>