Blame


1 aa513bf8 2023-01-22 jrmu version=pmwiki-2.2.130 ordered=1 urlencoded=1
2 aa513bf8 2023-01-22 jrmu agent=Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
3 aa513bf8 2023-01-22 jrmu author=gry
4 aa513bf8 2023-01-22 jrmu charset=UTF-8
5 aa513bf8 2023-01-22 jrmu csum=permissions added
6 aa513bf8 2023-01-22 jrmu ctime=1597841309
7 aa513bf8 2023-01-22 jrmu host=203.129.25.247
8 aa513bf8 2023-01-22 jrmu name=Shell.ShellSSHKEYS
9 aa513bf8 2023-01-22 jrmu rev=4
10 aa513bf8 2023-01-22 jrmu targets=
11 aa513bf8 2023-01-22 jrmu text=(:title SSH key authentication:)%0a%0aSSH-keys are used a lot in many applications such as git, to access an account without the need for username and password. It is also more safe since there is the need of actual data present in your pc, which cannot be "guessed", unlike many passwords.%0a%0aOnce created you can log in to the shell using your username and password for the first time. In order to set up ssh-key based authentication you just need to add your public key to the authorized_keys file in the .ssh folder. %0a%0aFirst 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.%0a%0a!! Part 1: Create your SSH key(pair)%0a%0aCreating SSH keys is a platform specific procedure.%0a%0aFor Windows users detailed instructions can be found at:\\%0ahttps://www.ssh.com/ssh/putty/windows/puttygen \\%0a%0aFor Linux, Mac, and Termux (Android) users detailed instructions can be found at: \\%0ahttps://www.ssh.com/ssh/keygen%0a%0aOn Linux or UNIX, ssh key pair can be generated with%0a%0a[@%0a$ ssh-keygen -t rsa%0a@]%0a%0a%0a!! Part 2: Configure SSH key(pair) access%0a%0aAssuming you are log into your shell and you see **%3cYourName>$**, 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.%0a%0aTime 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.%0a%0a[@%0a$ nano .ssh/authorized_keys%0a$ chmod 700 $HOME%0a$ chmod 700 $HOME/.ssh%0a$ chmod 600 $HOME/.ssh/authorized_keys%0a@]%0a%0aNow 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.%0a**Important:** __Make sure it is the public key and it begins with //ssh-rsa// !!__%0a%0aHaving 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. %0a%0aNow 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.%0a%0aNext 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!
12 aa513bf8 2023-01-22 jrmu time=1598392828
13 aa513bf8 2023-01-22 jrmu title=SSH key authentication
14 aa513bf8 2023-01-22 jrmu author:1598392828=gry
15 aa513bf8 2023-01-22 jrmu csum:1598392828=permissions added
16 aa513bf8 2023-01-22 jrmu diff:1598392828:1598391443:=34,36d33%0a%3c $ chmod 700 $HOME%0a%3c $ chmod 700 $HOME/.ssh%0a%3c $ chmod 600 $HOME/.ssh/authorized_keys%0a
17 aa513bf8 2023-01-22 jrmu host:1598392828=203.129.25.247
18 aa513bf8 2023-01-22 jrmu author:1598391443=gry
19 aa513bf8 2023-01-22 jrmu csum:1598391443=+
20 aa513bf8 2023-01-22 jrmu diff:1598391443:1598391407:=31,34d30%0a%3c %0a%3c [@%0a%3c $ nano .ssh/authorized_keys%0a%3c @]%0a
21 aa513bf8 2023-01-22 jrmu host:1598391443=203.129.25.247
22 aa513bf8 2023-01-22 jrmu author:1598391407=gry
23 aa513bf8 2023-01-22 jrmu csum:1598391407=clarified
24 aa513bf8 2023-01-22 jrmu diff:1598391407:1597841309:=9,10c9,25%0a%3c !! Part 1: Create your SSH key(pair)%0a%3c %0a---%0a> !! Part 1%0a> %0a> Assuming you are log into your shell and you see **%3cYourName>$**, 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.%0a> %0a> 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.%0a> %0a> 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.%0a> **Important:** __Make sure it is the public key and it begins with //ssh-rsa// !!__%0a> %0a> 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. %0a> %0a> 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.%0a> %0a> 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!%0a> %0a> !! Part 2%0a> %0a18,39d32%0a%3c %0a%3c On Linux or UNIX, ssh key pair can be generated with%0a%3c %0a%3c [@%0a%3c $ ssh-keygen -t rsa%0a%3c @]%0a%3c %0a%3c %0a%3c !! Part 2: Configure SSH key(pair) access%0a%3c %0a%3c Assuming you are log into your shell and you see **%3cYourName>$**, 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.%0a%3c %0a%3c 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.%0a%3c %0a%3c 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.%0a%3c **Important:** __Make sure it is the public key and it begins with //ssh-rsa// !!__%0a%3c %0a%3c 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. %0a%3c %0a%3c 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.%0a%3c %0a%3c 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!%0a\ No newline at end of file%0a
25 aa513bf8 2023-01-22 jrmu host:1598391407=203.129.25.247
26 aa513bf8 2023-01-22 jrmu author:1597841309=jrmu
27 aa513bf8 2023-01-22 jrmu diff:1597841309:1597841309:=1,32d0%0a%3c (:title SSH key authentication:)%0a%3c %0a%3c SSH-keys are used a lot in many applications such as git, to access an account without the need for username and password. It is also more safe since there is the need of actual data present in your pc, which cannot be "guessed", unlike many passwords.%0a%3c %0a%3c Once created you can log in to the shell using your username and password for the first time. In order to set up ssh-key based authentication you just need to add your public key to the authorized_keys file in the .ssh folder. %0a%3c %0a%3c 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.%0a%3c %0a%3c !! Part 1%0a%3c %0a%3c Assuming you are log into your shell and you see **%3cYourName>$**, 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.%0a%3c %0a%3c 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.%0a%3c %0a%3c 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.%0a%3c **Important:** __Make sure it is the public key and it begins with //ssh-rsa// !!__%0a%3c %0a%3c 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. %0a%3c %0a%3c 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.%0a%3c %0a%3c 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!%0a%3c %0a%3c !! Part 2%0a%3c %0a%3c Creating SSH keys is a platform specific procedure.%0a%3c %0a%3c For Windows users detailed instructions can be found at:\\%0a%3c https://www.ssh.com/ssh/putty/windows/puttygen \\%0a%3c %0a%3c For Linux, Mac, and Termux (Android) users detailed instructions can be found at: \\%0a%3c https://www.ssh.com/ssh/keygen%0a
28 aa513bf8 2023-01-22 jrmu host:1597841309=38.81.163.143