sofh7777 发表于 2018-1-3 07:34:19

ansible指路篇

1 # ssh-copy-id -i .ssh/id_rsa.pub root@node1.yinzhengjie.com  

2 The authenticity of host 'node1.yinzhengjie.com (192.168.1.105)' can't be established.  
3 RSA key fingerprint is 16:21:2b:17:78:43:90:02:47:c1:be:e3:ba:41:78:44.
  

4 Are you sure you want to continue connecting (yes/no)? yes  

5 Warning: Permanently added 'node1.yinzhengjie.com' (RSA) to the list of known hosts.  

6 root@node1.yinzhengjie.com's password:  
7 Now try logging into the machine, with "ssh 'root@node1.yinzhengjie.com'", and check in:
  
8
  
9   .ssh/authorized_keys
  
10
  
11 to make sure we haven't added extra keys that you weren't expecting.
  
12
  
13 #
  
14 # ssh-copy-id -i .ssh/id_rsa.pub root@node2.yinzhengjie.com
  
15 The authenticity of host 'node2.yinzhengjie.com (192.168.1.110)' can't be established.
  
16 RSA key fingerprint is 83:98:0a:6e:11:e9:26:14:e5:c8:3f:b3:1d:26:65:8e.
  
17 Are you sure you want to continue connecting (yes/no)? yes
  
18 Warning: Permanently added 'node2.yinzhengjie.com,192.168.1.110' (RSA) to the list of known hosts.
  
19 root@node2.yinzhengjie.com's password:
  
20 Now try logging into the machine, with "ssh 'root@node2.yinzhengjie.com'", and check in:
  
21
  
22   .ssh/authorized_keys
  
23
  
24 to make sure we haven't added extra keys that you weren't expecting.
  
25
  
26 #
  
27 # ssh-copy-id -i .ssh/id_rsa.pub root@node3.yinzhengjie.com
  
28 The authenticity of host 'node3.yinzhengjie.com (192.168.1.115)' can't be established.
  
29 RSA key fingerprint is 62:a4:bf:f7:b7:42:e7:e6:ce:36:bb:8f:e7:d8:e5:04.
  
30 Are you sure you want to continue connecting (yes/no)? yes
  
31 Warning: Permanently added 'node3.yinzhengjie.com,192.168.1.115' (RSA) to the list of known hosts.
  
32 root@node3.yinzhengjie.com's password:
  
33 Now try logging into the machine, with "ssh 'root@node3.yinzhengjie.com'", and check in:
  
34
  
35   .ssh/authorized_keys
  
36
  
37 to make sure we haven't added extra keys that you weren't expecting.
  
38
  
39 #
页: [1]
查看完整版本: ansible指路篇