VMware ESX 6.x without password

D. Heinrich
1 min readDec 28, 2018

--

Do you ever asked yourself why I have to put in my esxi password everytime I login to it?

This might be over now!

This is just a quick article. I just upgraded ESXi servers from 6.5 to 6.7u1 and wanted to let you know how I add my SSH-Key to it.

If you already have a ssh-key than you might want to use it.

For example by default it lays under ~/.ssh/id_rsa.pub

$ cat ~/.ssh/id_rsa.pub
ssh-rsa AA[...]== <name you gave it>

So now you need to login to your esx.

$ ssh root@myESXi
Password: <type your password for the last time>

Now you edit the ssh-authorized-key-file…

$ vi /etc/ssh/keys-root/authorized_keys

Than you add yours + those of your collegues for example… and quite using :x (means quite+save)..

Now logout from your esx.

When relog you should find the following.

$ ssh root@myESXi
he time and date of this login have been sent to the system logs.
[...]The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
[root@esx-myESXi:~]

Cheers!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

D. Heinrich
D. Heinrich

Written by D. Heinrich

Working as a Head of Infrastructure at Flower Labs.

No responses yet

Write a response