type
status
date
slug
summary
tags
category
icon
password

Add CA on Mac

Ref:
 
  • Generate CA on Cloudflared Dashboard
    • Generate a short-lived certificate public key
      1. In Zero Trust, go to Access > Service auth > SSH.
      1. In the Application dropdown, choose the Access application that represents your SSH server.
      1. Select Generate certificate. A row will appear with a public key scoped to your application.
      1. Save the key or keep it somewhere convenient for configuring your server. You can return to copy this public key any time in the Service Auth dashboard.
notion image
 
  • Save your public key
      1. Copy the public key generated from the dashboard in Step 3.
      1. Use the following command to change directories to the SSH configuration directory on the remote target machine:
        1. Once there, you can use the following command to both generate the file and open a text editor to input/paste the public key.
          1. In the ca.pub file, paste the public key without any modifications.
            1.  
              ca.pub ecdsa-sha2-nistp256 <redacted> open-ssh-ca@cloudflareaccess.org
              The ca.pub file can hold multiple keys, listed one per line. Empty lines and comments starting with # are also allowed.
       
      • configuration
        • Modify your SSHD config
          The following procedure makes two changes to the sshd_config file on the remote target machine. The first change requires that you uncomment a field already set in most default configurations; the second change adds a new field.
          1. While staying within the /etc/ssh directory on the remote machine, open the sshd_configfile.
            1. Go to the row named PubkeyAuthentication. In most default configurations, the row will appear commented out as follows:
              1. Remove the # symbol to uncomment the line:
                1. Add a new line below PubkeyAuthentication:
               

              Restart ssh service on Mac

              Hello World !關於孤獨
              Loading...