ssh-agent bash
ssh-keygen (生成密钥)
ssh-add (添加密钥)
ssh-copy-id (发送密钥)
ssh 主机(登录验证)
例:ubuntu-A免密登录ubuntu-B
在ubuntu-A下
ssh-agent bash
ssh-keygen
ssh-add
ssh-copy-id ubuntu-B
ssh ubuntu-B
ssh-agent bash
ssh-keygen (生成密钥)
ssh-add (添加密钥)
ssh-copy-id (发送密钥)
ssh 主机(登录验证)
例:ubuntu-A免密登录ubuntu-B
在ubuntu-A下
ssh-agent bash
ssh-keygen
ssh-add
ssh-copy-id ubuntu-B
ssh ubuntu-B