Skip to main content

What is "Public Key"?

Last updated on 2023-07-21

Introduction - About Public Key Authentication

"Public key authentication" is an authentication method that uses two types of key pairs: a "public key" and a "private key".

The advantage of logging in only with public key authentication is that it only allows connections from PCs that have the private key, and that PCs that do not have the key cannot log in, so security is improved.

As a preparation:

  1. Create your own key pair

    See also: How to create key pair Windows, Mac

  2. Register the created public key on the server
  3. Keep your private key on your computer

 

How to create key pair: Windows

 

  1. Start up powershell
  2. Create a key pair for public key authentication

ssh-keygen -t ed25519 

# Uses Ed25519, a stronger and better performing encryption algorithm than RSA

# For added security, you must enter a passphrase.

# Two files are created in the $HOME\.ssh directory by default

File NameUse for
id_ed25519private key
id_ed25519.pubpublic key
  1. Show public key

cat $HOME\.ssh/id_ed25519.pub 

# Change the file name accordingly

# Copy and paste the information displayed here to the application screen of the ARCS hosting portal

 

How to create Kye Pair: Mac

cd .ssh 
ssh-keygen -t ed25519 
cat id_ed25519.pub 

# Copy and paste the information displayed here to the application screen of the ARCS hosting portal