环境介绍
服务器性能 | 服务器名称 | 服务器主机名 |
---|---|---|
被动发动近程连贯 | 服务器A | servera |
被连贯服务器 | 服务器B | serverb |
配置阐明
- 在服务器A上生成密钥对
ssh-keygen -t rsa
此时会在服务器A上的~/.ssh目录下生成密钥对
- 将密钥对拷贝到指定服务器B,并以指定的用户进行登陆
ssh-copy-id [email protected]
配置成果
- 间接应用[email protected]的形式近程,不须要输出明码
本文由博客一文多发平台 OpenWrite 公布!
服务器性能 | 服务器名称 | 服务器主机名 |
---|---|---|
被动发动近程连贯 | 服务器A | servera |
被连贯服务器 | 服务器B | serverb |
ssh-keygen -t rsa
此时会在服务器A上的~/.ssh目录下生成密钥对
ssh-copy-id [email protected]
本文由博客一文多发平台 OpenWrite 公布!