티스토리 뷰

가상화/VMware

ESX SSH Key 인증방법

청년정신 2019. 5. 15. 23:20
VMware ESX 로 SSH Key 접근을 하기 위해서는 일반 리눅스와는 조금 다르다.
알아두면 접근하기 편하다. 간단하게 기술한다.


Step 1. 먼저 SSH를 활성화 한다
기본적으로 ESX console에서는 SSH가 비활성화 되어 있다.
활성화 해준다.

시스템 재구동 이후에도 데몬이 동작하도록 설정한다.
Step2. 원격지 호스트에서 SSH Public Key를 Copy해 준다.

[root@DC1-ESX31:~] more /etc/ssh/keys-root/authorized_keys
# ESX의 key는 /etc/ssh/keys-{user account}/ 에 존재한다.

$ scp ./.ssh/id_rsa.pub esx31:etc/ssh/keys-root/authorized_keys
# 원격 호스트에서 public key를 copy해서 해당 계정 authorized_keys에 복사한다.

[root@DC1-ESX31:~] more /etc/ssh/keys-root/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAA 생략...iGN3A4/ woohyungchoi@WHCHOI-M-V5EF

# scp copy 후에 ESX에서 확인해 보면 정상적으로 복제된 것을 확인 할 수 있다.


Step3. 접속 시험

이제 원격지 호스트에서 정상적으로 접속되는지 확인해 본다.

~ $ ssh esx31
The time and date of this login have been sent to the system logs.


WARNING:
   All commands run on the ESXi shell are logged and may be included in
   support bundles. Do not provide passwords directly on the command line.
   Most tools can prompt for secrets or accept them from standard input.


VMware offers supported, powerful system administration tools.  Please
see www.vmware.com/go/sysadmintools for details.


The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
[root@DC1-ESX31:~]

# 정상적으로 ssh 인증이 key를 통해서 곧바로 접속된다.



'가상화 > VMware' 카테고리의 다른 글

스토리지 프로비져닝  (1) 2019.03.13
vCenter 기반의 CentOS 설치 및 배포하기  (0) 2019.03.11
VMware language change  (0) 2019.03.05
공지사항