SSH access to ESX without monitor/keyboard

Scenario: you installed ESX. You need to ssh into it, but you don’t have monitor and/or keyboard — and the default ESX settings don’t allow ssh to root.

Solution: connect with VI client. Go to the “Users” tab. Add a user “foo”. SSH into the ESX as foo. Use “su -” to become root. Edit /etc/ssh/sshd_<something> to say “PermitRootLogin yes”. Do “service sshd restart”.

This is it — you can now ssh into the ESX as root.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: