ssh 免密登录
SSH
免密码登录
1.首先生成id_rsa 和 id_rsa.pub
1 | ssh-keygen -t rsa -C "limx@qq.com" |
2.上传id_rsa.pub到服务器
3.将公钥加入到.ssh/authorized_keys
1 | cd ~ |
1.首先生成id_rsa 和 id_rsa.pub
1 | ssh-keygen -t rsa -C "limx@qq.com" |
2.上传id_rsa.pub到服务器
3.将公钥加入到.ssh/authorized_keys
1 | cd ~ |