1. ssh-keygen -t rsa
2. cd /home/oracle/.ssh/
3.scp id_rsa.pub oracle@172.17.8.23:/home/oracle/89.pub
8.23
1.cd /home/oracle/.ssh
2.cat ../89.pub>>authorized_keys
可使用ssh-copy-id命令直接复制到远端
NAME
ssh-copy-id - install your identity.pub in a remote machine’s autho-
rized_keys
SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine