Changes

From Amahi Wiki
Jump to: navigation, search
1,384 bytes added ,  02:28, 10 February 2015
==Generating a public/private key pair==
Execute To generate a new SSH key in a client computer used to login to Amahi, do this:<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;"> ssh-keygen -t rsa -C "your-email@yourdomain.com"</div> It should say something like this (on Mac OS X). Press enter to choose the default:<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;"> Generating public/private rsa key pair. Enter file in which to save the key (/Users/YOURUSERNAME/.ssh/id_rsa):</div> Enter a passphrase. It's not secure to leave it empty. To avoid having to enter the following command, passphrase every time you can use the [https://en.wikipedia.org/wiki/Apple_Keychain Mac OS Keychain] in TerminalMac OS or an ssh-agent on Linux:<div style="border: 1px solid #A3B1BF; padding: .app5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;"> Enter passphrase (empty for no passphrase):</div> Then enter it again<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;"> Enter same passphrase again:</div>
This will give you something like this:
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
Your identification has been saved in /Users/YOURUSERNAME/.ssh/id_rsa. Your public key has been saved in /Users/YOURUSERNAME/.ssh/id_rsa.pub. The key fingerprint is: f1:2b:ae:c0:64:0c:57:6a:46:da:6a:ec:db:8c:a2:06 your-keygen -t rsaemail@yourdomain.com</div>
Accept all the defaults values and it may also show a randomart image (by hitting ENTERnot used very often yet) to the questions you'll be asked.
==Save the public key on our Amahi server==
12,424

edits