Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Private key login summary

Shulou Source: shulou.com Published: 2022-06-01 00:57:05 10月04日 Update

1. Use ssk-keygen to generate keys

Manually generate the authorized_keys file

Copy the public key to the authorized_keys file,

Command: cat id_rsa.pub >> authorized_keys

4. Generate the known_hosts file

Edit the known_hosts file and add it according to the format hostname, ip, public key (don't forget localhost)

Copy.ssh to other hosts

Tags: File generate host public key command manual format login Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Docker MySQL Shulou Tech Info Linux