SSH access to ESXi/ESX hosts with public/private key

by Hojung posted Nov 12, 2014
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

+ - Up Down Comment Print

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002866


To allow SSH access to ESXi/ESX hosts with public/private key authentication:

  1. Generate public/private keys. For detailed instructions, see the OpenBSD Reference Manual from OpenBSD

    Notes
    • These instructions generate two files in ~/.sshid_rsa and id_rsa.pub
    • In ESXi 5.x, the ssh-keygen command is located at /usr/lib/vmware/openssh/bin.
    • The preceding link was valid as of November 26, 2013. If you find the link to be broken, provide feedback on the article and a VMware employee will update the article as necessary.

  2. On the remote host, store the public key content, id_rsa.pub in ~/.ssh/authorized_keys.

    Notes
    • For ESXi 5.0, the location of authorized_keys is: /etc/ssh/keys-<username>/authorized_keys
    • More than one key can be stored in this file.

  3. To allow root access, changePermitRootLogin no to PermitRootLogin yes in the /etc/ssh/sshd_config file.
  4. To disable password login, ensure thatChallengeResponseAuthentication and PasswordAuthentication are set tono.
  5. Reload the service:

    • For ESXi, run the command:

      /etc/init.d/SSH restart

    • For ESX, run the command:

      service sshd reload

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5