Log into a VMware ESXi using SSH keys

Change settings in /etc/ssh/sshd_config:

vi /etc/ssh/sshd_config:

PermitRootLogin yes
ChallengeResponseAuthentication no

UsePAM yes
# only use PAM challenge-response (keyboard-interactive)
PasswordAuthentication yes


Restart service:
/etc/init.d/SSH restart

chown -R san: /etc/ssh/keys-san

ls -ld /etc/ssh/keys-san
drwxr-xr-x 1 san san 512 Mar 4 13:14 /etc/ssh/keys-san

ls -la /etc/ssh/keys-san/authorized_keys
-rw------T 1 san san 799 Mar 4 13:14 /etc/ssh/keys-san/authorized_keys

Comments powered by CComment