13719654321 发表于 2018-7-30 10:20:47

ansible安装及介绍

# ssh-keygen -t rsa  
Generating public/private rsa key pair.
  
Enter file in which to save the key (/root/.ssh/id_rsa):
  
Enter passphrase (empty for no passphrase):
  
Enter same passphrase again:
  
Your identification has been saved in /root/.ssh/id_rsa.
  
Your public key has been saved in /root/.ssh/id_rsa.pub.
  
The key fingerprint is:
  
ae:b1:ef:46:d8:e4:3f:38:38:8d:8b:e7:e3:a2:4c:c2 root@vm.lansgg.com
  
The key's randomart image is:
  
+--[ RSA 2048]----+
  
|               |
  
|               |
  
|               |
  
|      .      |
  
|       =S      |
  
|.   ..+      |
  
|.E.   .=.o       |
  
| +..*+= o      |
  
|o..=*Bo. .   |
  
+-----------------+
  
# ssh-copy-id -i 172.16.162.130
  
The authenticity of host '172.16.162.130 (172.16.162.130)' can't be established.
  
RSA key fingerprint is 1e:76:f9:17:93:20:f1:be:06:48:02:3b:7c:80:41:07.
  
Are you sure you want to continue connecting (yes/no)? yes
  
Warning: Permanently added '172.16.162.130' (RSA) to the list of known hosts.
  
Address 172.16.162.130 maps to localhost, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
  
root@172.16.162.130's password:
  
Now try logging into the machine, with "ssh '172.16.162.130'", and check in:
  
.ssh/authorized_keys
  
to make sure we haven't added extra keys that you weren't expecting.
页: [1]
查看完整版本: ansible安装及介绍