IRCNow

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
shell:pubkey [2020/01/01 05:48]
pirata [UNIX-like OS (BSD, Linux, Minix, illumos, MacOS)]
shell:pubkey [2020/01/01 13:32] (current)
pirata [Android]
Line 16: Line 16:
 For now, this page acts as a placeholder. Depending on your device, you may wish to refer to the following websites for more information on how to set it up. For now, this page acts as a placeholder. Depending on your device, you may wish to refer to the following websites for more information on how to set it up.
  
 +===== RSA vs ecdsa vs ed25519 =====
 +
 +We accept RSA, ecdsa and ed25519 keys.
 +In case you are wondering, **ed25519** appears to be the most robust algorithm, followed by ecdsa and then RSA.
 +
 +Pick one.
 ==== Windows via PuTTY ==== ==== Windows via PuTTY ====
 [[https://​devops.ionos.com/​tutorials/​use-ssh-keys-with-putty-on-windows/​]] [[https://​devops.ionos.com/​tutorials/​use-ssh-keys-with-putty-on-windows/​]]
Line 22: Line 28:
 [[https://​confluence.atlassian.com/​bitbucketserver/​creating-ssh-keys-776639788.html]] [[https://​confluence.atlassian.com/​bitbucketserver/​creating-ssh-keys-776639788.html]]
  
-==== Android ​via Termux ​==== +==== Android ====
-[[https://​wiki.termux.com/​wiki/​Remote_Access#​Setting_up_public_key_authentication]] +
-  * The long story short with this guide is that you will ideally need to generate the SSH keys on your computer first.+
  
-==== UNIX-like OS (BSD, Linux, Minix, illumos, MacOS) ====+=== Install termux from PlayStore or F-Droid ===
  
-=== RSA vs ecdsa vs ed25519 ===+Install openssh:
  
-We accept RSA, ecdsa and ed25519 ​keys. +<code bash> 
-In case you are wondering, **ed25519** appears ​to be the most robust algorithm, followed by ecdsa and then RSA.+$ pkg install openssh 
 +</​code>​ 
 + 
 +=== Generate key pair === 
 + 
 +<code bash> 
 +$ ssh-keygen -t ed25519 
 +Generating public/​private ​ed25519 ​key pair. 
 +Enter file in which to save the key (/​data/​data/​com.termux/​files/​home/​.ssh/​id_ed25519):​ [enter] or specify where you want to store both keys 
 +Enter passphrase (empty for no passphrase):​ 
 +Enter same passphrase again: 
 +Your identification has been saved in /​data/​data/​com.termux/​files/​home/​.ssh/​id_ed25519. 
 +Your public key has been saved in /​data/​data/​com.termux/​files/​home/​.ssh/​id_ed25519.pub 
 +</​code>​ 
 + 
 +=== Copy your public key to our server ​and login in using public key authentication method === 
 + 
 +<code bash>$ ssh-copyid /​data/​data/​com.termux/​files/​home/​.ssh/​id_ed25519.pub youruser@shell.ircnow.org</​code>​ 
 +<code bash>$ ssh -i /​data/​data/​com.termux/​files/​home/​.ssh/​id_ed25519.pub youruser@shell.ircnow.org</​code>​ 
 + 
 +=== Bookmark this connection === 
 + 
 +<code bash> 
 +$ vi /​data/​data/​com.termux/​files/​home/​.ssh/​config 
 +Host shell 
 +        HostName shell.ircnow.org 
 +        User     ​youruser 
 +        Port     22 
 +        IdentityFile /​data/​data/​com.termux/​files/​home/​.ssh/​id_ed25519 
 + </​code>​ 
 +         
 +Congratulations. You may now login to our shell securely by simply running: 
 + 
 +<code bash>$ ssh shell</​code>​ 
 +==== UNIX-like OS (BSD, Linux, Minix, illumos, MacOS) ====
  
 === Generate key pair === === Generate key pair ===
Line 37: Line 75:
 <code bash>$ ssh-keygen -t ed25519 <code bash>$ ssh-keygen -t ed25519
 Generating public/​private ed25519 key pair. Generating public/​private ed25519 key pair.
-Enter file in which to save the key ($HOME/​.ssh/​ed25519):​ [enter] ​**or specify where you want to store both keys**+Enter file in which to save the key ($HOME/​.ssh/​ed25519):​ [enter] or specify where you want to store both keys
 Enter passphrase (empty for no passphrase):​ Enter passphrase (empty for no passphrase):​
 Enter same passphrase again: Enter same passphrase again:
Line 43: Line 81:
 Your public key has been saved in $HOME/​.ssh/​.ssh/​ed25519.</​code>​ Your public key has been saved in $HOME/​.ssh/​.ssh/​ed25519.</​code>​
  
-=== Copy Public Key to our server and login in using public key authentication method ===+=== Copy your public key to our server and login in using public key authentication method ===
  
 <code bash>$ ssh-copyid $HOME/​.ssh/​ed25519.pub youruser@shell.ircnow.org</​code>​ <code bash>$ ssh-copyid $HOME/​.ssh/​ed25519.pub youruser@shell.ircnow.org</​code>​
Line 50: Line 88:
 === Bookmark this connection === === Bookmark this connection ===
  
-Add to $HOME/​.ssh/​config +<code bash> 
- +$ vi $HOME/​.ssh/​config 
-<code bash>Host shell+Host shell
         HostName shell.ircnow.org         HostName shell.ircnow.org
         User     ​youruser         User     ​youruser
Line 58: Line 96:
         IdentityFile $HOME/​.ssh/​ed25519</​code>​         IdentityFile $HOME/​.ssh/​ed25519</​code>​
         ​         ​
-You may now login to our shell by simply running:+Congratulations. ​You may now login to our shell securely ​by simply running:
  
 <code bash>$ ssh shell</​code>​ <code bash>$ ssh shell</​code>​
- 
-Done. Super easy, right?