Enabling public key authentication on VMWare ESXi 4 - non root user



according to: Enabling SSH with public key authentication on VMWare ESXi 4

1) add user to hypervisor system
useradd -s /bin/ash -d /home/esxiuser esxiuser
mkdir -p /home/esxiuser/.ssh

2) create key pair on remote client
ssh-keygen

and copy public key to hypervisor:
scp ~/.ssh/id_rsa.pub root@hypervisor:/home/esxiuser/.ssh/authorized_keys

3) save the hypervisor configuration
tar -C / -czf "/bootbank/home.tgz" /home
Edit the '/bootbank/boot.cfg' file and add "--- home.tgz" to the end of the modules parameter:
modules=vmk.gz --- sys.vgz --- cim.vgz --- oem.tgz --- license.tgz --- mod.tgz --- home.tgz
Last update:
2010-11-22 16:02
Author:
Daniel
Revision:
1.5
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.