ssh免密登陆 Posted on 2022-02-22 In 计算机 1.本地生成密钥对:1ssh-keygen 默认在~/.ssh/ 的目录默认生成名为id_rsa的两个文件 私钥rd_rsa公钥id_rsa.pub 除了RSA算法,还有ecdsa算法等等 可以可以通过 -t 参数来指定算法。 2.配置到远程1ssh-copy-id -i ~/.ssh/id_rsa.pub <user>@<ip> 本地的公钥将会写到服务器的~/.ssh/authorized_keys,以后登陆的时候免密登陆。 Donate WeChat Pay Alipay Post author: ezhonghu Post link: https://erzhonghoo.github.io/2022/02/22/ssh免密登陆/ Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.