VMware Cloud Community
ESX41
Contributor
Contributor

Not able to login with the local user in both ESXi/ESX 4.1

hi all,

I had downloaded ESXi 4.1 and installed properly.

I am able to join and leave the domain using vSphere client also.

Iam able to create the local users and set password also ,but not able to login with the same local user credentials.

the commands which iam using to create local users are

useradd test1

passwd test1

passwd: all authentication tokens updated successfully.(after setting password)

iam trying to login using the command

ssh test1@localhost

the error message which iam getting is

Permission denied, please try again.

please suggest .

thanks,

srinivas.

0 Kudos
15 Replies
djciaro
Expert
Expert

Have you eanbled ssh access?

/etc/ssh/sshd_config

Permitrootlogin yes

service sshd restart

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

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
0 Kudos
ESX41
Contributor
Contributor

Hi ,

thanks for the reply

yes i have enable ssh acess.I am able to login using root user as well as domain users also.

Only with the local users iam facing this problem.

please let me know there is any other way to login with local users.

thanks,

srinivas

0 Kudos
djciaro
Expert
Expert

First, create an account on the ESX host. This can be done via SC or VI client:

To create an account using the command line, log into the ESX host as the root account and then type the following commands:

useradd - creates the user account

passwd - sets the password for the user account

After creating the account you need to assign some rights to the user:

Use VI Client to connect to your ESX Host. Login as root.

Click on the "Users and Groups" tab.

select the user and edit

Check the box "Grant shell access to user"

also you can add other rights such as user & bin

7626_7626.JPG

Click ok, then test. It should work.

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

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
0 Kudos
ESX41
Contributor
Contributor

hi,

i am using vSphere client to domain join and leave , i have an option in the same vSphere client only to enable <![endif]><![if gte mso 9]>"Grant shell access to user" in "usersand groups" tab.

whether VI client and vSphere client both are same, if not how can i use VI client , whether i need to download it????

thanks,

srinivas

0 Kudos
djciaro
Expert
Expert

Via Internet Explorer: https://SERVERNAME

where you see:

Getting Started

If you need to access this host remotely, use the following program to install vSphere Client software. After running the installer, start the client and log in to this host.

Download vSphere Client

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

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
Texiwill
Leadership
Leadership

Hello,

Moved to the ESXi 4 forum.

Please note that allowing PermitRootLogin to Yes degrades your overall security stance. Also, if you are using ESXi, opening up SSH access will also degrade your security stance.


Best regards,
Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009

Virtualization Practice Analyst[/url]
Now Available: 'VMware vSphere(TM) and Virtual Infrastructure Security'[/url]
Also available 'VMWare ESX Server in the Enterprise'[/url]
[url=http://www.astroarch.com/wiki/index.php/Blog_Roll]SearchVMware Pro[/url]|Blue Gears[/url]|Top Virtualization Security Links[/url]|
[url=http://www.astroarch.com/wiki/index.php/Virtualization_Security_Round_Table_Podcast]Virtualization Security Round Table Podcast[/url]

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
atcnf2008
Contributor
Contributor

Excuse me: where is ESXi 4.1 for downloading? I can only see 4.0. Did I read something wrong?

thank you.

0 Kudos
DSTAVERT
Immortal
Immortal

There isn't a 4.1 version.

-- David -- VMware Communities Moderator
0 Kudos
atcnf2008
Contributor
Contributor

Thank you David,

The reason 4.1 catches my eyes is that I read somewhere saying ESX4.1 is coming out around Nov 16, I guess we still have to wait....

0 Kudos
ESX41
Contributor
Contributor

hi

Now I am able to login with local user in ESX ,as you said

i gave the "Grant shell permission to this user" in the vSphere client

,but in ESXi when i create a local user iam not able to get the option

"Grant shell permission to this user" to enable. there is any other way

to login with local users in ESXi.

please suggest.

thanks,

srinivas

0 Kudos
Dave_Mishchenko
Immortal
Immortal

SSH is not supported with ESXi. You can enable it, but you don't need a grant shell option ithe vSphere client when you create users after you enable SSH - http://www.vm-help.com/esx40i/ESXi_enable_SSH.php.




Dave

VMware Communities User Moderator

New book in town - vSphere Quick Start Guide -http://www.yellow-bricks.com/2009/08/12/new-book-in-town-vsphere-quick-start-guide/.

Do you have a system or PCI card working with VMDirectPath? Submit your specs to the Unofficial VMDirectPath HCL - http://www.vm-help.com/forum/viewforum.php?f=21.

0 Kudos
ESX41
Contributor
Contributor

Hi,

Thanks for the reply, I think we can use dbclient instead of SSH for login, I am able to login domain users using dbclient but not able to login with local users. In the console of the ESXi machine I can login with local users , only when I connect this ESXi machine using putty iam able to login only with 'root' user or with 'domain users' ,not with the local users . please let me know what to do.

Thanks,

srinivas

0 Kudos
ESX41
Contributor
Contributor

Hi,

Thanks for the reply, I think we can use dbclient instead of SSH for login, I am able to login domain users using dbclient but not able to login with local users. In the console of the ESXi machine I can login with local users , only when I connect this ESXi machine using putty iam able to login only with 'root' user or with 'domain users' ,not with the local users . please let me know what to do.

Thanks,

srinivas

0 Kudos
ESX41
Contributor
Contributor

Hi,

Thanks for the reply, I think we can use dbclient instead of SSH for login, I am able to login domain users using dbclient but not able to login with local users. In the console of the ESXi machine I can login with local users , only when I connect this ESXi machine using putty iam able to login only with 'root' user or with 'domain users' ,not with the local users . please let me know what to do.

Thanks,

srinivas

0 Kudos
AlbertWT
Virtuoso
Virtuoso

Yes David, you're right.

Perhaps in the next few weeks, VMware will release it :-o)

Kind Regards,

AWT

/* Please feel free to provide any comments or input you may have. */
0 Kudos