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 13:27]
pirata [How?]
shell:pubkey [2020/01/01 13:32]
pirata [Android]
Line 32: Line 32:
 === Install termux from PlayStore or F-Droid === === Install termux from PlayStore or F-Droid ===
  
-== Install openssh ​==+Install openssh:
  
 <code bash> <code bash>
Line 38: Line 38:
 </​code>​ </​code>​
  
-== Generate key pair ==+=== Generate key pair ===
  
 <code bash> <code bash>
 $ ssh-keygen -t ed25519 $ ssh-keygen -t ed25519
 Generating public/​private ed25519 key pair. Generating public/​private ed25519 key pair.
-Enter file in which to save the key (/​data/​data/​com.termux/​files/​home/​.ssh/​id_): [enter] or specify where you want to store both keys+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 passphrase (empty for no passphrase):​
 Enter same passphrase again: Enter same passphrase again:
-Your identification has been saved in $HOME/​.ssh/​id_ed25519. +Your identification has been saved in /​data/​data/​com.termux/​files/​home/​.ssh/​id_ed25519. 
-Your public key has been saved in $HOME/.ssh/​.ssh/​id_ed25519.pub+Your public key has been saved in /data/​data/​com.termux/​files/​home/​.ssh/​id_ed25519.pub
 </​code>​ </​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) ==== ==== UNIX-like OS (BSD, Linux, Minix, illumos, MacOS) ====