IRCNow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
shell:ssh_keys [2020/01/06 13:57]
eis created
shell:ssh_keys [2020/01/06 15:17]
eis
Line 5: Line 5:
 First this guide will show you how to do that and in the second part there will be links on how to generate an ssh-key pair for those who want one. First this guide will show you how to do that and in the second part there will be links on how to generate an ssh-key pair for those who want one.
  
-Assuming you are log into your shell and you see **<​YourName>​$**,​ press //ls -a// to show all the items in your home directory. Notice the .ssh folder, that is the one we want. Press //cd .ssh// to change into it and press again ls to see the **authorized_keys** file that we were looking for.+===Part 1=== 
 + 
 +Assuming you are log into your shell and you see **<​YourName>​$**,​ press ''​ls -a'' ​to show all the items in your home directory. Notice the **.ssh** folder, that is the one we want. Press ''​cd .ssh''  ​to change into it and press again ls to see the **authorized_keys** file that we were looking for. 
 + 
 +Time to open this file for editing, one way to do this is the command ''​nano authorized_keys''​. The file should be empty, if it is not go to a new empty row and  leave the cursor there for a moment. 
 + 
 +Now let's go to our public key file in our pc, open it with any program and copy all the text you see starting from the //ssh-rsa// all the way to  the e-mail at the end (including it). Select all the text (''​Ctrl+A''​),​ copy all the text either with ''​Ctrl+C'',​ either with right click and copy. 
 +**Important:​** __Make sure it is the public key and it begins with //ssh-rsa// !!__ 
 + 
 +Having the key copied in the clipboard we can change back to the ircnow shell and press right click and paste or ''​Ctrl+Shift+V'',​ and the text should appear on the new row in the file.  
 + 
 +Now let's close the editor, if you used nano the command is ''​Ctrl+x''​ and press ''​Yes''​ at the prompt that asks you whether to save or discard the changes. 
 + 
 +Next time you ssh into your shell there will be no need to insert the password, if you added a passphrase to you key during creation, that might be requested instead, otherwise you will log in directly! 
 + 
 +===Part 2=== 
 + 
 +Creating SSH keys is a platform specific procedure. 
 + 
 +For Windows users detailed instructions can be found at:\\ 
 +https://​www.ssh.com/​ssh/​putty/​windows/​puttygen \\ 
 + 
 +For Linux, Mac, and Termux (Android) users detailed instructions can be found at: \\ 
 +https://​www.ssh.com/​ssh/​keygen 
 +