$ ssh-keygen //生成秘钥 Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: The key's randomart image is: +---[RSA 2048]----+ | .o=B@*. | | . = =o*.*. | |. . + @ + o o | |oo o * + | |o +.. + S | |.oo. . | | =. | |..=oE | | *+ o. | +----[SHA256]-----+