- 在本地机器(..230.216)(执行SSH命令的机器)上生成SSH密钥对
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
- 将公钥复制到远程服务器 (jenkins所在服务器)
ssh-copy-id root@*.*.71.172
- 验证免密登录
ssh root@*.*.71.172
# 如果不需要输入密码就能成功登录,那么SSH免密登录就配置成功了。
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
ssh-copy-id root@*.*.71.172
ssh root@*.*.71.172
# 如果不需要输入密码就能成功登录,那么SSH免密登录就配置成功了。