VMware Cloud Community
santh
Contributor
Contributor

unable to login root account in ESX 4.0 server

Hi,

How to access ESX 4.0 update 1 through winscp or putty. After modifying sshd_config file, we are unable to login to esx server even locally.

Please advice for the same.

Reply
0 Kudos
8 Replies
a_p_
Leadership
Leadership

... After modifying sshd_config file, we are unable to login to esx server even locally.

Interesting! Maybe a reboot can help.

What you could do now is to login to a host using the vSphere client, create a new user and assign administrative rights to him. Start putty and try to log on as this user. If it works, type "su -" to get root access. If putty does not work try this on the console directly.

For ssh access on ESX follow the steps on How to activate root SSH access in ESX 4.0.

André

Reply
0 Kudos
thehyperadvisor
Enthusiast
Enthusiast

You have to restart the sshd service after you make the change.


hope this helps - thehyperadvisor.com

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

VCP3,4,5, VCAP4-DCA, vExpert hope this helps - http://www.thehyperadvisor.com If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
athlon_crazy
Virtuoso
Virtuoso

Or you can try restart SSH server via vi-client too :

ESX -> configuration -> security profile -> properties -> SSH server -> Option -> Restart






vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org

http://www.no-x.org
Reply
0 Kudos
santh
Contributor
Contributor

Hi,

We modified sshd_config file for login the root account. After modifying this file, i am not able to login the esx server.

Then we tried ESX -> configuration -> security profile -> properties -> SSH server -> Option -> Restart this option also.

Please advice for the same

Reply
0 Kudos
santh
Contributor
Contributor

Hi,

We created new user. Please let me know how to give new user account rights of administrative permission.

Reply
0 Kudos
samuk
Enthusiast
Enthusiast

i think there is a right there for SSH only if i am not mistaken..?

Reply
0 Kudos
a_p_
Leadership
Leadership

Actually you don't need to grant any administrative rights. It's even more secure if you don't do this.

Just check “Grant shell access to this user” for the newly created user.

André

Reply
0 Kudos
ericpond
Enthusiast
Enthusiast

Look at this article for a good explanation of the security best practices and recommendations....

http://itknowledgeexchange.techtarget.com/virtualization-pro/creating-an-ssh-user-account-on-vmware-...

I would recommend using the useradd function via CLI.






Eric Pond

Western PA VMUG Leader

2009, 2010 vExpert

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Eric Pond Western PA VMUG Co-Leader 2009, 2010, 2011, 2012, 2013 vExpert
Reply
0 Kudos