클러스터내 호스트들간 신뢰 관계 구축

yk hi·2021년 7월 7일

Linux

목록 보기
5/40

클러스터 신뢰관계 구성

/etc/hosts

ssh server1

이거 될까?

당연히 안됨

why?

신뢰관계가 아니기 때문

그래서 etc/hosts에 등록을 해줘야함

vi /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.101 server1 server1.kpc.com
192.168.56.102 server2 server2.kpc.com
192.168.56.103 server3 server3.kpc.com

이렇게 등록해주면 끝

ssh server2 를 다시 실행하면

[root@server1 LABs]# ssh server2
The authenticity of host 'server2 (192.168.56.102)' can't be established.
ECDSA key fingerprint is SHA256:miUBr7tADS2BWE9RORqob0wFzzBEg7ni9jfPlbYjcws.
ECDSA key fingerprint is MD5:bf:fd:cb:ea:7d:02:a7:5e:13:d5:b9:98:67:c1:43:f9.
Are you sure you want to continue connecting (yes/no)? no

된다!!!!!

server3 root가 아니라 앞에 kevin@server3 해줘야함

profile
엔지니어의 실력은 고통의 총합이다 <임백준 칼럼>

0개의 댓글