ssh-keygen -t rsa
scp /root/.ssh/id_rsa.pub root@node02:/root/.ssh/authorized_keys
三个回车,
scp
scp /root/.ssh/id_rsa.pub root@node02:/root/.ssh/authorized_keys
给node02分配私匙
scp: illegal option -- h
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2