Persistant customizing of ESXI

to enable passwordless ssh authentication:

cat ~/.ssh/id_rsa.pub | ssh root@esxi ‘cat >> /etc/ssh/keys-root/authorized_keys’

To make them available aftre reboot you can run /sbin/auto-backup.sh or

~ # cat /var/spool/cron/crontabs/root
#syntax : minute hour day month dayofweek command
01 01 * * * /sbin/tmpwatch.sh
01 * * * * /sbin/auto-backup.sh #first minute of every hour (run every hour)

you can use the crontab for it.

weiterlesen …