コンテンツ

  1. HOME
  2. FAQ
  3. Websites, Web Hosting, Housing
  4. Virtual Machine Hosting Service

Websites, Web Hosting, Housing FAQ

Virtual Machine Hosting Service

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
  3. ssh-keygen -t ed25519

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

    # It is recommended to enter passphrase for improved security

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

    File NameUse for
    id_ed25519private key
    id_ed25519.pubpublic key
  4. Show public key
  5. 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

 

Copyright © Institute for Information Management and Communication, Kyoto University, all rights reserved.