나중에 다시 정리하기 !
디피헬만 apint
[devops@control ~]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/devops/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/devops/.ssh/id_rsa.
Your public key has been saved in /home/devops/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:VZkbK1HfGB5iAosuAAqERnLtcVnRgCQvCXVMmAC8sms devops@control.example.com
The key's randomart image is:
+---[RSA 2048]----+
|X+++o*++==..=oo |
|== .===. .o+++ = |
|o o.ooo . .. ++ .|
|.. ..o .. o |
|.. . . S . |
|. . |
| . |
|.E |
|. |
+----[SHA256]-----+
[devops@control ~]$
[devops@control ~]$ ls -a .ssh/
. .. id_rsa id_rsa.pub known_hosts
[devops@control .ssh]$ ssh-copy-id node1.example.com
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/devops/.ssh/id_rsa.pub"
/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
devops@node1.example.com's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'node1.example.com'"
and check to make sure that only the key(s) you wanted were added.
[devops@control .ssh]$ ssh-copy-id node2.example.com
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/devops/.ssh/id_rsa.pub"
The authenticity of host 'node2.example.com (192.168.110.30)' can't be established.
ECDSA key fingerprint is SHA256:q/JZbDZ5ytsnjf5tCC+aHegugRXOhEa98iJWTarMVpc.
ECDSA key fingerprint is MD5:60:08:9c:17:23:91:5d:71:30:77:0f:bd:5a:dc:b1:ef.
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
devops@node2.example.com's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'node2.example.com'"
and check to make sure that only the key(s) you wanted were added.
[devops@control .ssh]$ ssh-copy-id node3.example.com
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/devops/.ssh/id_rsa.pub"
The authenticity of host 'node3.example.com (192.168.110.40)' can't be established.
ECDSA key fingerprint is SHA256:OfsujxYDPKK1dw3sap2F9MIa8i6Ue9VL7kVYIu5ciFI.
ECDSA key fingerprint is MD5:36:dd:a7:e3:55:33:c1:bf:c3:6d:96:98:d1:4f:21:26.
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
devops@node3.example.com's password:
Permission denied, please try again.
devops@node3.example.com's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'node3.example.com'"
and check to make sure that only the key(s) you wanted were added.
[devops@control .ssh]$ cd
[devops@control ~]$ ssh devops@node1.example.com
Last login: Tue Feb 6 07:54:47 2024 from 192.168.110.1'Ansible' 카테고리의 다른 글
| ansible 에러 (0) | 2024.02.14 |
|---|---|
| ansible 기본 환경설정 (2) | 2024.02.13 |
| ansible 수요일 (1) | 2024.02.07 |
| ansible 2일차 (2) | 2024.02.07 |
| Ansible 준비 (2) | 2024.02.06 |