gyts62 发表于 2018-7-29 06:20:34

Ansible杂记(1)

# ssh-copy-id -i ~/.ssh/id_rsa.pub root@10.201.106.132  /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
  /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
  root@10.201.106.132's password:
  Number of key(s) added: 1
  Now try logging into the machine, with:   "ssh 'root@10.201.106.132'"
  and check to make sure that only the key(s) you wanted were added.
  #
  # ssh-copy-id -i ~/.ssh/id_rsa.pub root@10.201.106.21
  /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
  /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
  root@10.201.106.21's password:
  Number of key(s) added: 1
  Now try logging into the machine, with:   "ssh 'root@10.201.106.21'"
  and check to make sure that only the key(s) you wanted were added.
  #
  # ssh-copy-id -i ~/.ssh/id_rsa.pub root@10.201.106.22
  /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
  /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
  root@10.201.106.22's password:
  Number of key(s) added: 1
  Now try logging into the machine, with:   "ssh 'root@10.201.106.22'"
  and check to make sure that only the key(s) you wanted were added.
  #
  自己的也复制一份
  # ssh-copy-id -i ~/.ssh/id_rsa.pub root@10.201.106.131
  The authenticity of host '10.201.106.131 (10.201.106.131)' can't be established.
  ECDSA key fingerprint is 5e:5d:4d:d2:3f:73:fb:5c:c4:26:c7:c4:85:10:c9:75.
  Are you sure you want to continue connecting (yes/no)? yes
  /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
  /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
  root@10.201.106.131's password:
  Number of key(s) added: 1
  Now try logging into the machine, with:   "ssh 'root@10.201.106.131'"
  and check to make sure that only the key(s) you wanted were added.
  #
页: [1]
查看完整版本: Ansible杂记(1)