LiRI Wiki

Linguistic Research Infrastructure - University of Zurich

User Tools

Site Tools


howto:ssh_keypair_unix

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:ssh_keypair_unix [2022/01/18 13:40] – ↷ Page name changed from howto:ssh_keypair_macos to howto:ssh_keypair_unix Stefan Bircherhowto:ssh_keypair_unix [2022/12/05 16:22] (current) Stefan Bircher
Line 1: Line 1:
-====== ... create an SSH key pair on Linux/macOS ======+~~NOTOC~~ 
 +====== ... create an SSH key pair in Linux/macOS ======
 ---- ----
  
-===== Step 1 - =====+===== Step 1 - Generate SSH key pair ===== 
 + 
 +Open //Terminal//, type "ssh-keygen -t ed25519" and press //Enter//: 
 + 
 +{{gallery> howto:ssh_keypair_unix_1-1.png?400x200&lightbox }} 
 + 
 +Change the default name of the SSH key pair (optional). This option can help distinguish between different keys in case of using multiple key pairs. By default, the system will save the keys to in the .ssh folder in the user's home directory. 
 +  * To continue with the default name "id_ed25519", press //Enter//
 +  * To change the default name, type the desired name and press //Enter//
 + 
 +Type the passphrase/password and press //Enter//
 +Type the passphrase/password again to confirm it and press //Enter//. The system will generate the key pair and display the key fingerprint and a randomart image: 
 + 
 +{{gallery> howto:ssh_keypair_unix_1-2.png?400x200&lightbox }} 
 + 
 +Type "ls ~/.ssh" and press //Enter//. Two files with name "id_ed25519" (or the adapted name in case of having changed the default name) should be listed. The private key of the SSH key pair is saved in the //**id_ed25119**// file and the public key in the //**id_ed25519.pub**// file: 
 + 
 +{{gallery> howto:ssh_keypair_unix_1-3.png?400x200&lightbox }}
howto/ssh_keypair_unix.1642513218.txt.gz · Last modified: by Stefan Bircher

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki