ssh免密登陆步骤
第一步:在本地机器上使用ssh-keygen产生公钥私钥对
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
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:
SHA256:+CzS29+WU8L4yTW/QAkm2t/SzEqqadqBr2mHlNBute8 root@u171